@@ -14,7 +14,7 @@ foreach(suffix IN ITEMS hr r lr hk k lk)
1414 SRCS
1515 abs${suffix} _test.cpp
1616 COMPILE_OPTIONS
17- -O3
17+ ${libc_opt_high_flag}
1818 DEPENDS
1919 libc.src.stdfix.abs${suffix}
2020 libc.src.__support.fixed_point.fx_bits
@@ -31,7 +31,7 @@ foreach(suffix IN ITEMS uhr ur ulr uhk uk)
3131 SRCS
3232 sqrt${suffix} _test.cpp
3333 COMPILE_OPTIONS
34- -O3
34+ ${libc_opt_high_flag}
3535 DEPENDS
3636 libc.src.stdfix.sqrt${suffix}
3737 libc.src.__support.CPP.bit
@@ -52,7 +52,7 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
5252 SRCS
5353 round${suffix} _test.cpp
5454 COMPILE_OPTIONS
55- -O3
55+ ${libc_opt_high_flag}
5656 DEPENDS
5757 libc.src.stdfix.round${suffix}
5858 libc.src.__support.fixed_point.fx_bits
@@ -67,7 +67,7 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
6767 SRCS
6868 ${suffix} bits_test.cpp
6969 COMPILE_OPTIONS
70- -O3
70+ ${libc_opt_high_flag}
7171 DEPENDS
7272 libc.src.stdfix.${suffix} bits
7373 libc.src.__support.CPP.bit
@@ -84,7 +84,7 @@ add_libc_test(
8484 SRCS
8585 uhksqrtus_test.cpp
8686 COMPILE_OPTIONS
87- -O3
87+ ${libc_opt_high_flag}
8888 DEPENDS
8989 libc.src.stdfix.uhksqrtus
9090 libc.src.__support.CPP.bit
@@ -103,7 +103,7 @@ add_libc_test(
103103 SRCS
104104 uksqrtui_test.cpp
105105 COMPILE_OPTIONS
106- -O3
106+ ${libc_opt_high_flag}
107107 DEPENDS
108108 libc.src.stdfix.uksqrtui
109109 libc.src.__support.CPP.bit
@@ -122,7 +122,7 @@ add_libc_test(
122122 SRCS
123123 exphk_test.cpp
124124 COMPILE_OPTIONS
125- -O3
125+ ${libc_opt_high_flag}
126126 DEPENDS
127127 libc.src.stdfix.exphk
128128 libc.src.math.exp
@@ -140,7 +140,7 @@ add_libc_test(
140140 SRCS
141141 expk_test.cpp
142142 COMPILE_OPTIONS
143- -O3
143+ ${libc_opt_high_flag}
144144 DEPENDS
145145 libc.src.stdfix.expk
146146 libc.src.math.exp
0 commit comments