summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/ubsan/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/ubsan/CMakeLists.txt')
-rw-r--r--compiler-rt/test/ubsan/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/test/ubsan/CMakeLists.txt b/compiler-rt/test/ubsan/CMakeLists.txt
index 60ef84d7530..280f9677740 100644
--- a/compiler-rt/test/ubsan/CMakeLists.txt
+++ b/compiler-rt/test/ubsan/CMakeLists.txt
@@ -113,7 +113,11 @@ if(APPLE)
endif()
foreach(platform ${UBSAN_APPLE_PLATFORMS})
foreach(arch ${DARWIN_${platform}_ARCHS})
- set(UBSAN_TEST_TARGET_CFLAGS "-arch ${arch} -isysroot ${DARWIN_${platform}_SYSROOT}")
+ get_test_cflags_for_apple_platform(
+ "${platform}"
+ "${arch}"
+ UBSAN_TEST_TARGET_CFLAGS
+ )
if (";${UBSAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
add_ubsan_device_testsuite("Standalone" ubsan ${platform} ${arch})
endif()
OpenPOWER on IntegriCloud