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)
1616#-------------------------------------------------------------------------------
1717# build flags
1818#-------------------------------------------------------------------------------
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)
2127
2228set (CMAKE_C_FLAGS_RELEASE "-g1 -O3 -fno-math-errno -falign-functions=32 -falign-loops=32" CACHE INTERNAL "" FORCE)
2329set (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