• 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    "-Wno-c++98-compat-pedantic",
10    "-Wno-conversion",
11    "-Wno-covered-switch-default",
12    "-Wno-deprecated",
13    "-Wno-disabled-macro-expansion",
14    "-Wno-double-promotion",
15    "-Wno-comma",
16    "-Wno-extra-semi",
17    "-Wno-extra-semi-stmt",
18    "-Wno-packed",
19    "-Wno-padded",
20    "-Wno-sign-compare",
21    "-Wno-float-conversion",
22    "-Wno-float-equal",
23    "-Wno-format-nonliteral",
24    "-Wno-gcc-compat",
25    "-Wno-global-constructors",
26    "-Wno-exit-time-destructors",
27    "-Wno-non-modular-include-in-module",
28    "-Wno-old-style-cast",
29    "-Wno-range-loop-analysis",
30    "-Wno-reserved-id-macro",
31    "-Wno-shorten-64-to-32",
32    "-Wno-switch-enum",
33    "-Wno-thread-safety-negative",
34    "-Wno-unknown-warning-option",
35    "-Wno-unreachable-code",
36    "-Wno-unused-macros",
37    "-Wno-weak-vtables",
38    "-Wno-zero-as-null-pointer-constant",
39    "-Wbitfield-enum-conversion",
40    "-Wbool-conversion",
41    "-Wconstant-conversion",
42    "-Wenum-conversion",
43    "-Wint-conversion",
44    "-Wliteral-conversion",
45    "-Wnon-literal-null-conversion",
46    "-Wnull-conversion",
47    "-Wobjc-literal-conversion",
48    "-Wno-sign-conversion",
49    "-Wstring-conversion",
50    "/DNOMINMAX",
51    "/DWIN32_LEAN_AND_MEAN",
52    "/D_CRT_SECURE_NO_WARNINGS",
53    "/D_SCL_SECURE_NO_WARNINGS",
54    "/D_ENABLE_EXTENDED_ALIGNED_STORAGE",
55]
56
57ABSL_CLANG_CL_TEST_FLAGS = [
58    "-Wno-c99-extensions",
59    "-Wno-deprecated-declarations",
60    "-Wno-missing-noreturn",
61    "-Wno-missing-prototypes",
62    "-Wno-missing-variable-declarations",
63    "-Wno-null-conversion",
64    "-Wno-shadow",
65    "-Wno-shift-sign-overflow",
66    "-Wno-sign-compare",
67    "-Wno-unused-function",
68    "-Wno-unused-member-function",
69    "-Wno-unused-parameter",
70    "-Wno-unused-private-field",
71    "-Wno-unused-template",
72    "-Wno-used-but-marked-unused",
73    "-Wno-zero-as-null-pointer-constant",
74    "-Wno-gnu-zero-variadic-macro-arguments",
75]
76
77ABSL_GCC_FLAGS = [
78    "-Wall",
79    "-Wextra",
80    "-Wcast-qual",
81    "-Wconversion-null",
82    "-Wmissing-declarations",
83    "-Woverlength-strings",
84    "-Wpointer-arith",
85    "-Wunused-local-typedefs",
86    "-Wunused-result",
87    "-Wvarargs",
88    "-Wvla",
89    "-Wwrite-strings",
90    "-Wno-missing-field-initializers",
91    "-Wno-sign-compare",
92]
93
94ABSL_GCC_TEST_FLAGS = [
95    "-Wno-conversion-null",
96    "-Wno-deprecated-declarations",
97    "-Wno-missing-declarations",
98    "-Wno-sign-compare",
99    "-Wno-unused-function",
100    "-Wno-unused-parameter",
101    "-Wno-unused-private-field",
102]
103
104ABSL_LLVM_FLAGS = [
105    "-Wall",
106    "-Wextra",
107    "-Weverything",
108    "-Wno-c++98-compat-pedantic",
109    "-Wno-conversion",
110    "-Wno-covered-switch-default",
111    "-Wno-deprecated",
112    "-Wno-disabled-macro-expansion",
113    "-Wno-double-promotion",
114    "-Wno-comma",
115    "-Wno-extra-semi",
116    "-Wno-extra-semi-stmt",
117    "-Wno-packed",
118    "-Wno-padded",
119    "-Wno-sign-compare",
120    "-Wno-float-conversion",
121    "-Wno-float-equal",
122    "-Wno-format-nonliteral",
123    "-Wno-gcc-compat",
124    "-Wno-global-constructors",
125    "-Wno-exit-time-destructors",
126    "-Wno-non-modular-include-in-module",
127    "-Wno-old-style-cast",
128    "-Wno-range-loop-analysis",
129    "-Wno-reserved-id-macro",
130    "-Wno-shorten-64-to-32",
131    "-Wno-switch-enum",
132    "-Wno-thread-safety-negative",
133    "-Wno-unknown-warning-option",
134    "-Wno-unreachable-code",
135    "-Wno-unused-macros",
136    "-Wno-weak-vtables",
137    "-Wno-zero-as-null-pointer-constant",
138    "-Wbitfield-enum-conversion",
139    "-Wbool-conversion",
140    "-Wconstant-conversion",
141    "-Wenum-conversion",
142    "-Wint-conversion",
143    "-Wliteral-conversion",
144    "-Wnon-literal-null-conversion",
145    "-Wnull-conversion",
146    "-Wobjc-literal-conversion",
147    "-Wno-sign-conversion",
148    "-Wstring-conversion",
149]
150
151ABSL_LLVM_TEST_FLAGS = [
152    "-Wno-c99-extensions",
153    "-Wno-deprecated-declarations",
154    "-Wno-missing-noreturn",
155    "-Wno-missing-prototypes",
156    "-Wno-missing-variable-declarations",
157    "-Wno-null-conversion",
158    "-Wno-shadow",
159    "-Wno-shift-sign-overflow",
160    "-Wno-sign-compare",
161    "-Wno-unused-function",
162    "-Wno-unused-member-function",
163    "-Wno-unused-parameter",
164    "-Wno-unused-private-field",
165    "-Wno-unused-template",
166    "-Wno-used-but-marked-unused",
167    "-Wno-zero-as-null-pointer-constant",
168    "-Wno-gnu-zero-variadic-macro-arguments",
169]
170
171ABSL_MSVC_FLAGS = [
172    "/W3",
173    "/DNOMINMAX",
174    "/DWIN32_LEAN_AND_MEAN",
175    "/D_CRT_SECURE_NO_WARNINGS",
176    "/D_SCL_SECURE_NO_WARNINGS",
177    "/D_ENABLE_EXTENDED_ALIGNED_STORAGE",
178    "/bigobj",
179    "/wd4005",
180    "/wd4068",
181    "/wd4180",
182    "/wd4244",
183    "/wd4267",
184    "/wd4503",
185    "/wd4800",
186]
187
188ABSL_MSVC_LINKOPTS = [
189    "-ignore:4221",
190]
191
192ABSL_MSVC_TEST_FLAGS = [
193    "/wd4018",
194    "/wd4101",
195    "/wd4503",
196    "/wd4996",
197    "/DNOMINMAX",
198]
199
200ABSL_RANDOM_HWAES_ARM32_FLAGS = [
201    "-mfpu=neon",
202]
203
204ABSL_RANDOM_HWAES_ARM64_FLAGS = [
205    "-march=armv8-a+crypto",
206]
207
208ABSL_RANDOM_HWAES_MSVC_X64_FLAGS = [
209]
210
211ABSL_RANDOM_HWAES_X64_FLAGS = [
212    "-maes",
213    "-msse4.1",
214]
215