Skip to content

Commit

Permalink
Enable sanitizers on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJimmi committed Sep 18, 2024
1 parent 5a2137a commit 1c5b5f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- platform: macos-latest
platform-name: macOS
package-manager: brew
additional-cmake-options: -DJIVE_ENABLE_COVERAGE=ON
additional-cmake-options: -DJIVE_ENABLE_COVERAGE=ON -DJIVE_ENABLE_SANITISERS=ON

- platform: windows-latest
platform-name: Windows
platform-shell: cmd
Expand Down
4 changes: 1 addition & 3 deletions cmake/jive_compiler_and_linker_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ if (APPLE)

if (JIVE_ENABLE_SANITISERS)
target_compile_options(jive_compiler_and_linker_options
INTERFACE -fsanitize=address
-fsanitize=undefined
INTERFACE -fsanitize=undefined
)

target_link_options(jive_compiler_and_linker_options
INTERFACE
-fsanitize=address
-fsanitize=undefined
)
endif ()
Expand Down

0 comments on commit 1c5b5f4

Please sign in to comment.