[compiler-rt] a14263e - [compiler-rt] -fsanitize=cfi is not supported on Darwin
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 17 13:29:18 PDT 2021
Author: Jon Roelofs
Date: 2021-03-17T13:28:42-07:00
New Revision: a14263e8f89ce6d22d55aa3581e6c8e23b05504b
URL: https://github.com/llvm/llvm-project/commit/a14263e8f89ce6d22d55aa3581e6c8e23b05504b
DIFF: https://github.com/llvm/llvm-project/commit/a14263e8f89ce6d22d55aa3581e6c8e23b05504b.diff
LOG: [compiler-rt] -fsanitize=cfi is not supported on Darwin
This was responsible for:
Failed Tests (2):
cfi-devirt-x86_64 :: mfcall.cpp
cfi-standalone-x86_64 :: mfcall.cpp
Added:
Modified:
compiler-rt/test/cfi/lit.cfg.py
Removed:
################################################################################
diff --git a/compiler-rt/test/cfi/lit.cfg.py b/compiler-rt/test/cfi/lit.cfg.py
index cbffe6ea8a65..2f2d1ddcaa79 100644
--- a/compiler-rt/test/cfi/lit.cfg.py
+++ b/compiler-rt/test/cfi/lit.cfg.py
@@ -13,7 +13,11 @@ def build_invocation(compile_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":
More information about the llvm-commits
mailing list