Skip to content

Commit

Permalink
Remove redundant sanitizer options
Browse files Browse the repository at this point in the history
Simplify the CMakeLists.txt by eliminating redundant compile and link options for address sanitization. The removed flags are either defaults or unnecessary, streamlining the build configuration.

Took 3 minutes


Took 10 seconds
  • Loading branch information
SeriousSamV committed Oct 27, 2024
1 parent fbbe15f commit 82978c2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ project(PyPHP C)
set(CMAKE_C_STANDARD 23)

add_compile_options(-fsanitize=address)
add_compile_options(-fno-omit-frame-pointer)
add_compile_options(-fsanitize-address-use-after-scope)
add_compile_options(-fsanitize-address-outline-instrumentation)
add_link_options(-fsanitize=address)
add_link_options(-fno-omit-frame-pointer)
add_link_options(-fsanitize-address-use-after-scope)
add_link_options(-fsanitize-address-outline-instrumentation)

if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi")
Expand Down

0 comments on commit 82978c2

Please sign in to comment.