Skip to content

Commit de669c6

Browse files
committed
refactor: Organize compile flg
1 parent dc8587d commit de669c6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

CMakeLists.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,22 @@ if (APPLE)
1414
else()
1515
file(GLOB_RECURSE SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c")
1616
file(GLOB_RECURSE ASM_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.S")
17-
set(DEBUG_COMPILE_OPTIONS "-O0" "-static-libasan" "-fno-builtin" "-g")
18-
set(RELEASE_COMPILE_OPTIONS "-O3" "-mtune=native" "-ffast-math" "-fno-math-errno" "-fno-builtin" "-falign-functions")
17+
set(
18+
DEBUG_COMPILE_OPTIONS
19+
"-O0"
20+
"-static-libasan"
21+
"-fno-builtin"
22+
"-g"
23+
)
24+
set(
25+
RELEASE_COMPILE_OPTIONS
26+
"-O3"
27+
"-mtune=native"
28+
"-ffast-math"
29+
"-fno-math-errno"
30+
"-fno-builtin"
31+
"-falign-functions"
32+
)
1933
endif()
2034

2135
# Create the static library target including C and assembly files

0 commit comments

Comments
 (0)