Skip to content

Commit

Permalink
fix: use compile option conditionaly
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Gorez <gorez.tony@gmail.com>
  • Loading branch information
tony-go committed Feb 28, 2024
1 parent 9b0bfb6 commit 2d8822d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmake/FindGoogleTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ endif()

# We want to disable the unsigned shift base sanitizer for gtest
# because it triggers on the gtest code.
target_compile_options(gtest PRIVATE "-fno-sanitize=unsigned-shift-base")
if(INCLUDEJS_ADDRESS_SANITIZER)
target_compile_options(gtest PRIVATE "-fno-sanitize=unsigned-shift-base")
endif()
1 change: 0 additions & 1 deletion vendor/googletest/CMakeLists.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d8822d

Please sign in to comment.