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