Skip to content

Commit 79dc442

Browse files
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 llvm-svn: 218746
1 parent 92db6b7 commit 79dc442

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler-rt/test/ubsan/TestCases/Integer/summary.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %clangxx -fsanitize=integer %s -o %t && %t 2>&1 | FileCheck %s
22
// REQUIRES: ubsan-asan
3-
// ubsan-asan doesn't work on Darwin yet.
4-
// XFAIL: darwin
53

64
#include <stdint.h>
75

compiler-rt/test/ubsan/lit.common.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ if ubsan_lit_test_mode == "Standalone":
2121
config.available_features.add("ubsan-standalone")
2222
clang_ubsan_cflags = []
2323
elif ubsan_lit_test_mode == "AddressSanitizer":
24+
if config.host_os == 'Darwin':
25+
# ubsan-asan doesn't yet work on Darwin,
26+
# see http://llvm.org/bugs/show_bug.cgi?id=21112.
27+
config.unsupported = True
2428
config.name = 'UndefinedBehaviorSanitizer-AddressSanitizer'
2529
config.available_features.add("ubsan-asan")
2630
clang_ubsan_cflags = ["-fsanitize=address"]

0 commit comments

Comments
 (0)