File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,14 @@ project(nfc-lab VERSION "${BUILD_PROJECT_VERSION}" LANGUAGES C CXX)
16
16
#-------------------------------------------------------------------------------
17
17
# build flags
18
18
#-------------------------------------------------------------------------------
19
- set (CMAKE_C_FLAGS_DEBUG "-g -Og -fno-math-errno -falign-functions=32 -falign-loops=32 -Wa,-mbig-obj" CACHE INTERNAL "" FORCE )
20
- set (CMAKE_CXX_FLAGS_DEBUG "-g -Og -fno-math-errno -falign-functions=32 -falign-loops=32 -Wa,-mbig-obj" CACHE INTERNAL "" FORCE )
19
+ if (WIN32 )
20
+ set (DEBUG_BIGOBJ_FLAG "-Wa,-mbig-obj" )
21
+ else ()
22
+ set (DEBUG_BIGOBJ_FLAG "" )
23
+ endif ()
24
+
25
+ set (CMAKE_C_FLAGS_DEBUG "-g -Og -fno-math-errno -falign-functions=32 -falign-loops=32 ${DEBUG_BIGOBJ_FLAG} " CACHE INTERNAL "" FORCE )
26
+ set (CMAKE_CXX_FLAGS_DEBUG "-g -Og -fno-math-errno -falign-functions=32 -falign-loops=32 ${DEBUG_BIGOBJ_FLAG} " CACHE INTERNAL "" FORCE )
21
27
22
28
set (CMAKE_C_FLAGS_RELEASE "-g1 -O3 -fno-math-errno -falign-functions=32 -falign-loops=32" CACHE INTERNAL "" FORCE )
23
29
set (CMAKE_CXX_FLAGS_RELEASE "-g1 -O3 -fno-math-errno -falign-functions=32 -falign-loops=32" CACHE INTERNAL "" FORCE )
You can’t perform that action at this time.
0 commit comments