Skip to content

Commit e2cd8d9

Browse files
committed
[libc] Don't manually override the optimization level for math
This was originally done for testing purposes, but after llvm#126315 we now do testing through GitHub Actions and should be instead using the optimization setting chosen by the user.
1 parent 4bf97aa commit e2cd8d9

File tree

3 files changed

+1
-851
lines changed

3 files changed

+1
-851
lines changed

libc/src/complex/generic/CMakeLists.txt

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ add_entrypoint_object(
44
cproj.cpp
55
HDRS
66
../cproj.h
7-
COMPILE_OPTIONS
8-
${libc_opt_high_flag}
97
DEPENDS
108
libc.src.__support.complex_basic_ops
119
)
@@ -16,8 +14,6 @@ add_entrypoint_object(
1614
cprojf.cpp
1715
HDRS
1816
../cprojf.h
19-
COMPILE_OPTIONS
20-
${libc_opt_high_flag}
2117
DEPENDS
2218
libc.src.__support.complex_basic_ops
2319
)
@@ -28,8 +24,6 @@ add_entrypoint_object(
2824
cprojl.cpp
2925
HDRS
3026
../cprojl.h
31-
COMPILE_OPTIONS
32-
${libc_opt_high_flag}
3327
DEPENDS
3428
libc.src.__support.complex_basic_ops
3529
)
@@ -40,8 +34,6 @@ add_entrypoint_object(
4034
cprojf16.cpp
4135
HDRS
4236
../cprojf16.h
43-
COMPILE_OPTIONS
44-
${libc_opt_high_flag}
4537
DEPENDS
4638
libc.src.__support.complex_basic_ops
4739
libc.src.__support.macros.properties.types
@@ -54,8 +46,6 @@ add_entrypoint_object(
5446
cprojf128.cpp
5547
HDRS
5648
../cprojf128.h
57-
COMPILE_OPTIONS
58-
${libc_opt_high_flag}
5949
DEPENDS
6050
libc.src.__support.complex_basic_ops
6151
libc.src.__support.macros.properties.types
@@ -68,8 +58,6 @@ add_entrypoint_object(
6858
conj.cpp
6959
HDRS
7060
../conj.h
71-
COMPILE_OPTIONS
72-
${libc_opt_high_flag}
7361
DEPENDS
7462
libc.src.__support.complex_basic_ops
7563
)
@@ -80,8 +68,6 @@ add_entrypoint_object(
8068
conjf.cpp
8169
HDRS
8270
../conjf.h
83-
COMPILE_OPTIONS
84-
${libc_opt_high_flag}
8571
DEPENDS
8672
libc.src.__support.complex_basic_ops
8773
)
@@ -92,8 +78,6 @@ add_entrypoint_object(
9278
conjl.cpp
9379
HDRS
9480
../conjl.h
95-
COMPILE_OPTIONS
96-
${libc_opt_high_flag}
9781
DEPENDS
9882
libc.src.__support.complex_basic_ops
9983
)
@@ -104,8 +88,6 @@ add_entrypoint_object(
10488
conjf16.cpp
10589
HDRS
10690
../conjf16.h
107-
COMPILE_OPTIONS
108-
${libc_opt_high_flag}
10991
DEPENDS
11092
libc.src.__support.complex_basic_ops
11193
libc.src.__support.macros.properties.types
@@ -118,8 +100,6 @@ add_entrypoint_object(
118100
conjf128.cpp
119101
HDRS
120102
../conjf128.h
121-
COMPILE_OPTIONS
122-
${libc_opt_high_flag}
123103
DEPENDS
124104
libc.src.__support.complex_basic_ops
125105
libc.src.__support.macros.properties.types
@@ -132,8 +112,6 @@ add_entrypoint_object(
132112
creal.cpp
133113
HDRS
134114
../creal.h
135-
COMPILE_OPTIONS
136-
${libc_opt_high_flag}
137115
DEPENDS
138116
libc.src.__support.CPP.bit
139117
libc.src.__support.complex_type
@@ -145,8 +123,6 @@ add_entrypoint_object(
145123
crealf.cpp
146124
HDRS
147125
../crealf.h
148-
COMPILE_OPTIONS
149-
${libc_opt_high_flag}
150126
DEPENDS
151127
libc.src.__support.CPP.bit
152128
libc.src.__support.complex_type
@@ -158,8 +134,6 @@ add_entrypoint_object(
158134
creall.cpp
159135
HDRS
160136
../creall.h
161-
COMPILE_OPTIONS
162-
${libc_opt_high_flag}
163137
DEPENDS
164138
libc.src.__support.CPP.bit
165139
libc.src.__support.complex_type
@@ -171,23 +145,6 @@ add_entrypoint_object(
171145
crealf16.cpp
172146
HDRS
173147
../crealf16.h
174-
COMPILE_OPTIONS
175-
${libc_opt_high_flag}
176-
DEPENDS
177-
libc.src.__support.CPP.bit
178-
libc.src.__support.complex_type
179-
libc.src.__support.macros.properties.types
180-
libc.src.__support.macros.properties.complex_types
181-
)
182-
183-
add_entrypoint_object(
184-
crealf128
185-
SRCS
186-
crealf128.cpp
187-
HDRS
188-
../crealf128.h
189-
COMPILE_OPTIONS
190-
${libc_opt_high_flag}
191148
DEPENDS
192149
libc.src.__support.CPP.bit
193150
libc.src.__support.complex_type
@@ -201,8 +158,6 @@ add_entrypoint_object(
201158
cimag.cpp
202159
HDRS
203160
../cimag.h
204-
COMPILE_OPTIONS
205-
${libc_opt_high_flag}
206161
DEPENDS
207162
libc.src.__support.CPP.bit
208163
libc.src.__support.complex_type
@@ -214,8 +169,6 @@ add_entrypoint_object(
214169
cimagf.cpp
215170
HDRS
216171
../cimagf.h
217-
COMPILE_OPTIONS
218-
${libc_opt_high_flag}
219172
DEPENDS
220173
libc.src.__support.CPP.bit
221174
libc.src.__support.complex_type
@@ -227,21 +180,6 @@ add_entrypoint_object(
227180
cimagl.cpp
228181
HDRS
229182
../cimagl.h
230-
COMPILE_OPTIONS
231-
${libc_opt_high_flag}
232-
DEPENDS
233-
libc.src.__support.CPP.bit
234-
libc.src.__support.complex_type
235-
)
236-
237-
add_entrypoint_object(
238-
cimagf16
239-
SRCS
240-
cimagf16.cpp
241-
HDRS
242-
../cimagf16.h
243-
COMPILE_OPTIONS
244-
${libc_opt_high_flag}
245183
DEPENDS
246184
libc.src.__support.CPP.bit
247185
libc.src.__support.complex_type
@@ -255,8 +193,6 @@ add_entrypoint_object(
255193
cimagf128.cpp
256194
HDRS
257195
../cimagf128.h
258-
COMPILE_OPTIONS
259-
${libc_opt_high_flag}
260196
DEPENDS
261197
libc.src.__support.CPP.bit
262198
libc.src.__support.complex_type

0 commit comments

Comments
 (0)