Skip to content

Commit

Permalink
compiler flags -fno-stack-protector
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Sep 30, 2021
1 parent d53831b commit 8683377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")

elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
if(MSVC)
target_compile_options(FastNoise PRIVATE /GS- /fp:fast)
target_compile_options(FastNoise PRIVATE /GL- /GS- /fp:fast)
else()
target_compile_options(FastNoise PRIVATE "-ffast-math")
target_compile_options(FastNoise PRIVATE -ffast-math -fno-stack-protector)
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 4 OR "${CMAKE_CXX_FLAGS}" MATCHES "-m32")
Expand Down

0 comments on commit 8683377

Please sign in to comment.