Skip to content

Commit

Permalink
CI: Enable clang hardening for TestRunner and Benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Jul 17, 2024
1 parent 91825a1 commit 89873e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/Benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ endif()

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_compile_options(${TARGET_NAME} PRIVATE "-fno-aligned-allocation")
target_compile_definitions(${TARGET_NAME} PRIVATE
$<IF:$<CONFIG:Debug>,_LIBCPP_ENABLE_ASSERTIONS,_LIBCPP_ENABLE_HARDENED_MODE>)
endif()

# If we are compiling for Linux specify the arch to enable sse and avx instructions
Expand Down
2 changes: 2 additions & 0 deletions examples/TestRunner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ endif()

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_compile_options(${TARGET_NAME} PRIVATE "-fno-aligned-allocation")
target_compile_definitions(${TARGET_NAME} PRIVATE
$<IF:$<CONFIG:Debug>,_LIBCPP_ENABLE_ASSERTIONS,_LIBCPP_ENABLE_HARDENED_MODE>)
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
Expand Down

0 comments on commit 89873e5

Please sign in to comment.