Skip to content

Commit 4947049

Browse files
committed
[offload] - If LIBOMPTARGET_NO_SANITIZER_AMDGPU is set turn of SANITIZER_AMDGPU
When building compiler-rt as a runtime and also setting -DSANITIZER_AMDGPU=1 will propagate this variable down to the runtime CMakeCache.txt. We don't necessarily want the sanitizer enabled for offload in this case. Change-Id: I5608975bdd5c18689b65d2881fcba5f0cb245eea
1 parent 63508b8 commit 4947049

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

offload/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ else()
1919
set(OPENMP_STANDALONE_BUILD FALSE)
2020
endif()
2121

22+
if(LIBOMPTARGET_NO_SANITIZER_AMDGPU)
23+
set(SANITIZER_AMDGPU FALSE)
24+
endif()
25+
2226
# Check that the library can actually be built.
2327
if(APPLE OR WIN32 OR WASM)
2428
message(WARNING "libomptarget cannot be built on Windows and MacOS X!")

0 commit comments

Comments
 (0)