File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,10 @@ if(WIN32)
7676 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qstd=c++17" )
7777 set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -DDEBUG " )
7878elseif (UNIX )
79- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
80- -Wall -Wextra -Winit-self -Wuninitialized -Wmissing-declarations \
81- -fdiagnostics-color=auto -O3 \
82- " )
79+ set (SDL_FLAGS "-fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks" )
80+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SDL_FLAGS} -Wall -Wextra -Winit-self -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto" )
8381 set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -DDEBUG " )
84- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fsycl" )
82+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SDL_FLAGS} -std=c++17 -fsycl" )
8583else ()
8684 message (FATAL_ERROR "Unsupported system." )
8785endif ()
You can’t perform that action at this time.
0 commit comments