summaryrefslogtreecommitdiff
path: root/test/ubsan
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-05-27 21:29:31 +0000
committerEtienne Bergeron <etienneb@google.com>2016-05-27 21:29:31 +0000
commit4a36720665add501bd9f3607ec47e38c67acb547 (patch)
tree494093dcbf147ee77aad57beed85c602c5ba59fe /test/ubsan
parentf4e2d7d1d4a64b8e374fde6e87047347831adf13 (diff)
This patch is activating the build of Asan on Windows 64-bits.
It's fixing compilation errors. The runtime is not yet working. Missing features: OverrideFunction for x64 an equiv function for inline asm (atomic_compare_exchange_strong) shadow memory offset needs to be adjusted RoundUpToInstrBoundary for x64 They will be implemented by subsequent patches. Patch by Wei Wang. Differential revision: http://reviews.llvm.org/D20455 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@271049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan')
-rw-r--r--test/ubsan/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ubsan/CMakeLists.txt b/test/ubsan/CMakeLists.txt
index 0938ea2b1..97706fb1f 100644
--- a/test/ubsan/CMakeLists.txt
+++ b/test/ubsan/CMakeLists.txt
@@ -32,7 +32,11 @@ foreach(arch ${UBSAN_TEST_ARCH})
add_ubsan_testsuite("Standalone" ubsan ${arch})
if(COMPILER_RT_HAS_ASAN AND ";${ASAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
- add_ubsan_testsuite("AddressSanitizer" asan ${arch})
+ # TODO(wwchrome): Re-enable ubsan for asan win 64-bit when ready.
+ # Disable ubsan with AddressSanitizer tests for Windows 64-bit.
+ if(NOT OS_NAME MATCHES "Windows" OR CMAKE_SIZEOF_VOID_P EQUAL 4)
+ add_ubsan_testsuite("AddressSanitizer" asan ${arch})
+ endif()
endif()
if(COMPILER_RT_HAS_MSAN AND ";${MSAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
add_ubsan_testsuite("MemorySanitizer" msan ${arch})