Skip to content

Commit 62e108c

Browse files
committed
Change targets
1 parent eca13ff commit 62e108c

File tree

1 file changed

+70
-5
lines changed

1 file changed

+70
-5
lines changed

CMakeLists.txt

Lines changed: 70 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,76 @@ list(APPEND BASE_OPTIONS
2121
"-g"
2222
)
2323

24-
# TODO: Fix builds without avx2
25-
# list(APPEND UNOPTIMIZED "-O0")
26-
# list(APPEND OPTIMIZED "-O3")
27-
list(APPEND HOST "-O3" "-xHost")
28-
list(APPEND OPTIONS "HOST")
24+
list(APPEND O2
25+
"-O2"
26+
"-march=core-avx2"
27+
)
28+
list(APPEND O2_STRICT
29+
"-O2"
30+
"-fp-model=strict"
31+
"-march=core-avx2"
32+
)
33+
list(APPEND O2_PRECISE
34+
"-O2"
35+
"-fp-model=precise"
36+
"-march=core-avx2"
37+
)
38+
list(APPEND O3
39+
"-O3"
40+
"-march=core-avx2"
41+
)
42+
list(APPEND O3_STRICT
43+
"-O3"
44+
"-fp-model=strict"
45+
"-march=core-avx2"
46+
)
47+
list(APPEND O3_PRECISE
48+
"-O3"
49+
"-fp-model=precise"
50+
"-march=core-avx2"
51+
)
52+
list(APPEND O1
53+
"-O1"
54+
"-march=core-avx2"
55+
)
56+
list(APPEND O1_STRICT
57+
"-O1"
58+
"-fp-model=strict"
59+
"-march=core-avx2"
60+
)
61+
list(APPEND O1_PRECISE
62+
"-O1"
63+
"-fp-model=precise"
64+
"-march=core-avx2"
65+
)
66+
list(APPEND O0
67+
"-O0"
68+
"-march=core-avx2"
69+
)
70+
list(APPEND O0_STRICT
71+
"-O0"
72+
"-fp-model=strict"
73+
"-march=core-avx2"
74+
)
75+
list(APPEND O0_PRECISE
76+
"-O0"
77+
"-fp-model=precise"
78+
"-march=core-avx2"
79+
)
80+
list(APPEND OPTIONS
81+
"O2"
82+
"O2_STRICT"
83+
"O2_PRECISE"
84+
"O3"
85+
"O3_STRICT"
86+
"O3_PRECISE"
87+
"O1"
88+
"O1_STRICT"
89+
"O1_PRECISE"
90+
"O0"
91+
"O0_STRICT"
92+
"O0_PRECISE"
93+
)
2994

3095
# Add the executables
3196
file(GLOB SRC_FILES src/*.cpp)

0 commit comments

Comments
 (0)