projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd79b56
)
[compiler-rt] -fsanitize=cfi is not supported on Darwin
author
Jon Roelofs
<jonathan_roelofs@apple.com>
Wed, 17 Mar 2021 17:50:59 +0000
(10:50 -0700)
committer
Jon Roelofs
<jonathan_roelofs@apple.com>
Wed, 17 Mar 2021 20:28:42 +0000
(13:28 -0700)
This was responsible for:
Failed Tests (2):
cfi-devirt-x86_64 :: mfcall.cpp
cfi-standalone-x86_64 :: mfcall.cpp
compiler-rt/test/cfi/lit.cfg.py
patch
|
blob
|
history
diff --git
a/compiler-rt/test/cfi/lit.cfg.py
b/compiler-rt/test/cfi/lit.cfg.py
index
cbffe6e
..
2f2d1dd
100644
(file)
--- a/
compiler-rt/test/cfi/lit.cfg.py
+++ b/
compiler-rt/test/cfi/lit.cfg.py
@@
-13,7
+13,11
@@
clangxx = build_invocation([config.target_cflags] + config.cxx_mode_flags)
config.substitutions.append((r"%clang ", clang + ' '))
config.substitutions.append((r"%clangxx ", clangxx + ' '))
-if config.lto_supported:
+
+if 'darwin' in config.available_features:
+ # -fsanitize=cfi is not supported on Darwin hosts
+ config.unsupported = True
+elif config.lto_supported:
clang_cfi = clang + '-fsanitize=cfi '
if config.cfi_lit_test_mode == "Devirt":