Skip to content

Commit

Permalink
Update JenkinsJobs/Linux/ZenUnitAndMetalMock-RelWithDebInfo-ClangUnde…
Browse files Browse the repository at this point in the history
…finedBehaviorSanitizer.sh
  • Loading branch information
NeilJustice committed Jan 15, 2025
1 parent 04c7222 commit ef3521e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ if(UNIX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
message("ClangTidyMode enabled: CMAKE_EXPORT_COMPILE_COMMANDS set to ON")
elseif(ClangUndefinedBehaviorSanitizerMode)
append(CMAKE_CXX_FLAGS "-fsanitize=undefined")
replace(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g" "")
replace(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2" "")
append(CMAKE_CXX_FLAGS "-fsanitize=undefined,float-divide-by-zero,unsigned-integer-overflow,implicit-conversion,local-bounds")
message("ClangUndefinedBehaviorSanitizerMode enabled: -fsanitize=undefined appended to CMAKE_CXX_FLAGS")
elseif(ClangAddressSanitizerMode)
append(CMAKE_CXX_FLAGS "-fsanitize=address")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -ev

export CXX=/usr/bin/clang++
export PYTHONPATH=.
export UBSAN_OPTIONS=halt_on_error=true
python -u ZenUnitDevOpsPython/BuildAndTestZenUnitAndMetalMock.py \
--cmake-build-type=RelWithDebInfo \
--cmake-definitions="-DClangUndefinedBehaviorSanitizerMode=ON -DFastLinuxReleaseBuildMode=ON"
--cmake-definitions="-DClangUndefinedBehaviorSanitizerMode=ON"

0 comments on commit ef3521e

Please sign in to comment.