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 |
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.
dictionary copts::COPT_VARS |
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 ]
list copts::MSVC_DEFINES |
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 ]