Variables
copts Namespace Reference

Variables

 COPT_VARS
 
list LLVM_TEST_DISABLE_WARNINGS_FLAGS
 
list MSVC_BIG_WARNING_FLAGS
 
list MSVC_DEFINES
 

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

◆ COPT_VARS

copts.COPT_VARS

◆ LLVM_TEST_DISABLE_WARNINGS_FLAGS

copts.LLVM_TEST_DISABLE_WARNINGS_FLAGS
Initial value:
1 = [
2  "-Wno-c99-extensions",
3  "-Wno-deprecated-declarations",
4  "-Wno-missing-noreturn",
5  "-Wno-missing-prototypes",
6  "-Wno-missing-variable-declarations",
7  "-Wno-null-conversion",
8  "-Wno-shadow",
9  "-Wno-shift-sign-overflow",
10  "-Wno-sign-compare",
11  "-Wno-unused-function",
12  "-Wno-unused-member-function",
13  "-Wno-unused-parameter",
14  "-Wno-unused-private-field",
15  "-Wno-unused-template",
16  "-Wno-used-but-marked-unused",
17  "-Wno-zero-as-null-pointer-constant",
18  # gtest depends on this GNU extension being offered.
19  "-Wno-gnu-zero-variadic-macro-arguments",
20 ]

Definition at line 19 of file abseil-cpp/absl/copts/copts.py.

◆ MSVC_BIG_WARNING_FLAGS

copts.MSVC_BIG_WARNING_FLAGS
Initial value:
1 = [
2  "/W3",
3 ]

Definition at line 15 of file abseil-cpp/absl/copts/copts.py.

◆ MSVC_DEFINES

copts.MSVC_DEFINES
Initial value:
1 = [
2  "/DNOMINMAX", # Don't define min and max macros (windows.h) # Don't bloat namespace with incompatible winsock versions.
3  "/DWIN32_LEAN_AND_MEAN",
4  # Don't warn about usage of insecure C functions. "/D_CRT_SECURE_NO_WARNINGS", "/D_SCL_SECURE_NO_WARNINGS", # Introduced in VS 2017 15.8, allow overaligned types in aligned_storage "/D_ENABLE_EXTENDED_ALIGNED_STORAGE",]COPT_VARS = { "ABSL_GCC_FLAGS": [ "-Wall", "-Wextra", "-Wcast-qual", "-Wconversion-null", "-Wformat-security", "-Wmissing-declarations", "-Woverlength-strings", "-Wpointer-arith", "-Wundef", "-Wunused-local-typedefs", "-Wunused-result", "-Wvarargs", "-Wvla", # variable-length array "-Wwrite-strings", # Don't define min and max macros (Build on Windows using gcc)
5  "-DNOMINMAX",
6  ],

Definition at line 40 of file abseil-cpp/absl/copts/copts.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:09