• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""GENERATED! DO NOT MANUALLY EDIT THIS FILE.
2
3(1) Edit absl/copts/copts.py.
4(2) Run `python <path_to_absl>/copts/generate_copts.py`.
5"""
6
7ABSL_CLANG_CL_FLAGS = [
8    "/W3",
9    "/DNOMINMAX",
10    "/DWIN32_LEAN_AND_MEAN",
11    "/D_CRT_SECURE_NO_WARNINGS",
12    "/D_SCL_SECURE_NO_WARNINGS",
13    "/D_ENABLE_EXTENDED_ALIGNED_STORAGE",
14]
15
16ABSL_CLANG_CL_TEST_FLAGS = [
17    "-Wno-c99-extensions",
18    "-Wno-deprecated-declarations",
19    "-Wno-missing-noreturn",
20    "-Wno-missing-prototypes",
21    "-Wno-missing-variable-declarations",
22    "-Wno-null-conversion",
23    "-Wno-shadow",
24    "-Wno-shift-sign-overflow",
25    "-Wno-sign-compare",
26    "-Wno-unused-function",
27    "-Wno-unused-member-function",
28    "-Wno-unused-parameter",
29    "-Wno-unused-private-field",
30    "-Wno-unused-template",
31    "-Wno-used-but-marked-unused",
32    "-Wno-zero-as-null-pointer-constant",
33    "-Wno-gnu-zero-variadic-macro-arguments",
34]
35
36ABSL_GCC_FLAGS = [
37    "-Wall",
38    "-Wextra",
39    "-Wcast-qual",
40    "-Wconversion-null",
41    "-Wformat-security",
42    "-Wmissing-declarations",
43    "-Woverlength-strings",
44    "-Wpointer-arith",
45    "-Wundef",
46    "-Wunused-local-typedefs",
47    "-Wunused-result",
48    "-Wvarargs",
49    "-Wvla",
50    "-Wwrite-strings",
51    "-DNOMINMAX",
52]
53
54ABSL_GCC_TEST_FLAGS = [
55    "-Wno-conversion-null",
56    "-Wno-deprecated-declarations",
57    "-Wno-missing-declarations",
58    "-Wno-sign-compare",
59    "-Wno-unused-function",
60    "-Wno-unused-parameter",
61    "-Wno-unused-private-field",
62]
63
64ABSL_LLVM_FLAGS = [
65    "-Wall",
66    "-Wextra",
67    "-Wcast-qual",
68    "-Wconversion",
69    "-Wfloat-overflow-conversion",
70    "-Wfloat-zero-conversion",
71    "-Wfor-loop-analysis",
72    "-Wformat-security",
73    "-Wgnu-redeclared-enum",
74    "-Winfinite-recursion",
75    "-Winvalid-constexpr",
76    "-Wliteral-conversion",
77    "-Wmissing-declarations",
78    "-Woverlength-strings",
79    "-Wpointer-arith",
80    "-Wself-assign",
81    "-Wshadow-all",
82    "-Wstring-conversion",
83    "-Wtautological-overlap-compare",
84    "-Wundef",
85    "-Wuninitialized",
86    "-Wunreachable-code",
87    "-Wunused-comparison",
88    "-Wunused-local-typedefs",
89    "-Wunused-result",
90    "-Wvla",
91    "-Wwrite-strings",
92    "-Wno-float-conversion",
93    "-Wno-implicit-float-conversion",
94    "-Wno-implicit-int-float-conversion",
95    "-Wno-implicit-int-conversion",
96    "-Wno-shorten-64-to-32",
97    "-Wno-sign-conversion",
98    "-Wno-unknown-warning-option",
99    "-DNOMINMAX",
100]
101
102ABSL_LLVM_TEST_FLAGS = [
103    "-Wno-c99-extensions",
104    "-Wno-deprecated-declarations",
105    "-Wno-missing-noreturn",
106    "-Wno-missing-prototypes",
107    "-Wno-missing-variable-declarations",
108    "-Wno-null-conversion",
109    "-Wno-shadow",
110    "-Wno-shift-sign-overflow",
111    "-Wno-sign-compare",
112    "-Wno-unused-function",
113    "-Wno-unused-member-function",
114    "-Wno-unused-parameter",
115    "-Wno-unused-private-field",
116    "-Wno-unused-template",
117    "-Wno-used-but-marked-unused",
118    "-Wno-zero-as-null-pointer-constant",
119    "-Wno-gnu-zero-variadic-macro-arguments",
120]
121
122ABSL_MSVC_FLAGS = [
123    "/W3",
124    "/DNOMINMAX",
125    "/DWIN32_LEAN_AND_MEAN",
126    "/D_CRT_SECURE_NO_WARNINGS",
127    "/D_SCL_SECURE_NO_WARNINGS",
128    "/D_ENABLE_EXTENDED_ALIGNED_STORAGE",
129    "/bigobj",
130    "/wd4005",
131    "/wd4068",
132    "/wd4180",
133    "/wd4244",
134    "/wd4267",
135    "/wd4503",
136    "/wd4800",
137]
138
139ABSL_MSVC_LINKOPTS = [
140    "-ignore:4221",
141]
142
143ABSL_MSVC_TEST_FLAGS = [
144    "/wd4018",
145    "/wd4101",
146    "/wd4503",
147    "/wd4996",
148    "/DNOMINMAX",
149]
150
151ABSL_RANDOM_HWAES_ARM32_FLAGS = [
152    "-mfpu=neon",
153]
154
155ABSL_RANDOM_HWAES_ARM64_FLAGS = [
156    "-march=armv8-a+crypto",
157]
158
159ABSL_RANDOM_HWAES_MSVC_X64_FLAGS = [
160]
161
162ABSL_RANDOM_HWAES_X64_FLAGS = [
163    "-maes",
164    "-msse4.1",
165]
166