Skip to content

Commit

Permalink
fix: ditch not recommended -Wp prefixes preventing default gcc flag o…
Browse files Browse the repository at this point in the history
…verwrite
  • Loading branch information
kamiccolo authored and neheb committed Jan 13, 2025
1 parent cf64c2c commit a1b65bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/compilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN
endif()
endif()

add_compile_options(-Wp,-D_GLIBCXX_ASSERTIONS)
add_compile_options(-D_GLIBCXX_ASSERTIONS)

if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT (APPLE OR MINGW OR MSYS))
add_compile_options(-Wp,-D_FORTIFY_SOURCE=2) # Requires to compile with -O2
add_compile_options(-D_FORTIFY_SOURCE=2) # Requires to compile with -O2
endif()

if(BUILD_WITH_COVERAGE)
Expand Down

0 comments on commit a1b65bb

Please sign in to comment.