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)
76
76
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qstd=c++17" )
77
77
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -DDEBUG " )
78
78
elseif (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" )
83
81
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" )
85
83
else ()
86
84
message (FATAL_ERROR "Unsupported system." )
87
85
endif ()
You can’t perform that action at this time.
0 commit comments