Variables
copts Namespace Reference

Variables

dictionary COPT_VARS
list LLVM_BIG_WARNING_FLAGS
list LLVM_DISABLE_WARNINGS_FLAGS
list LLVM_TEST_DISABLE_WARNINGS_FLAGS
list MSVC_BIG_WARNING_FLAGS
list MSVC_DEFINES
list MSVC_STYLE_EXCEPTIONS_FLAGS

Detailed Description

Abseil compiler options.

This is the source of truth for Abseil compiler options.  To modify Abseil
compilation options:

  (1) Edit the appropriate list in this file based on the platform the flag is
      needed on.
  (2) Run `<path_to_absl>/copts/generate_copts.py`.

The generated copts are consumed by configure_copts.bzl and
AbseilConfigureCopts.cmake.

Variable Documentation

dictionary copts::COPT_VARS

Definition at line 131 of file copts.py.

Initial value:
00001 [
00002     "-Wall",
00003     "-Wextra",
00004     "-Weverything",
00005 ]

Definition at line 19 of file copts.py.

Definition at line 27 of file copts.py.

Initial value:
00001 [
00002     "-Wno-c99-extensions",
00003     "-Wno-deprecated-declarations",
00004     "-Wno-missing-noreturn",
00005     "-Wno-missing-prototypes",
00006     "-Wno-missing-variable-declarations",
00007     "-Wno-null-conversion",
00008     "-Wno-shadow",
00009     "-Wno-shift-sign-overflow",
00010     "-Wno-sign-compare",
00011     "-Wno-unused-function",
00012     "-Wno-unused-member-function",
00013     "-Wno-unused-parameter",
00014     "-Wno-unused-private-field",
00015     "-Wno-unused-template",
00016     "-Wno-used-but-marked-unused",
00017     "-Wno-zero-as-null-pointer-constant",
00018     # For a libc++ bug fixed in r357267
00019     "-Wno-gnu-include-next",
00020     # gtest depends on this GNU extension being offered.
00021     "-Wno-gnu-zero-variadic-macro-arguments",
00022 ]

Definition at line 91 of file copts.py.

Initial value:
00001 [
00002     "/W3",
00003 ]

Definition at line 15 of file copts.py.

Initial value:
00001 [
00002     "/DNOMINMAX",  # Don't define min and max macros (windows.h)
00003     # Don't bloat namespace with incompatible winsock versions.
00004     "/DWIN32_LEAN_AND_MEAN",
00005     # Don't warn about usage of insecure C functions.
00006     "/D_CRT_SECURE_NO_WARNINGS",
00007     "/D_SCL_SECURE_NO_WARNINGS",
00008     # Introduced in VS 2017 15.8, allow overaligned types in aligned_storage
00009     "/D_ENABLE_EXTENDED_ALIGNED_STORAGE",
00010 ]

Definition at line 120 of file copts.py.

Initial value:
00001 [
00002     "/U_HAS_EXCEPTIONS",
00003     "/D_HAS_EXCEPTIONS=1",
00004     "/EHsc"
00005 ]

Definition at line 114 of file copts.py.



abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:17