[compiler-rt] r218746 - Disable the ubsan-asan config on Darwin.

Alexander Potapenko glider at google.com
Wed Oct 1 01:53:00 PDT 2014


Author: glider
Date: Wed Oct  1 03:53:00 2014
New Revision: 218746

URL: http://llvm.org/viewvc/llvm-project?rev=218746&view=rev
Log:
Disable the ubsan-asan config on Darwin.
UBSan doesn't work together with ASan on Darwin yet, see http://llvm.org/bugs/show_bug.cgi?id=21112

Modified:
    compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp
    compiler-rt/trunk/test/ubsan/lit.common.cfg

Modified: compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp?rev=218746&r1=218745&r2=218746&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Integer/summary.cpp Wed Oct  1 03:53:00 2014
@@ -1,7 +1,5 @@
 // RUN: %clangxx -fsanitize=integer %s -o %t && %t 2>&1 | FileCheck %s
 // REQUIRES: ubsan-asan
-// ubsan-asan doesn't work on Darwin yet.
-// XFAIL: darwin
 
 #include <stdint.h>
 

Modified: compiler-rt/trunk/test/ubsan/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/lit.common.cfg?rev=218746&r1=218745&r2=218746&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/lit.common.cfg (original)
+++ compiler-rt/trunk/test/ubsan/lit.common.cfg Wed Oct  1 03:53:00 2014
@@ -21,6 +21,10 @@ if ubsan_lit_test_mode == "Standalone":
   config.available_features.add("ubsan-standalone")
   clang_ubsan_cflags = []
 elif ubsan_lit_test_mode == "AddressSanitizer":
+  if config.host_os == 'Darwin':
+    # ubsan-asan doesn't yet work on Darwin,
+    # see http://llvm.org/bugs/show_bug.cgi?id=21112.
+    config.unsupported = True
   config.name = 'UndefinedBehaviorSanitizer-AddressSanitizer'
   config.available_features.add("ubsan-asan")
   clang_ubsan_cflags = ["-fsanitize=address"]





More information about the llvm-commits mailing list