[compiler-rt] -fsanitize=cfi is not supported on Darwin
authorJon Roelofs <jonathan_roelofs@apple.com>
Wed, 17 Mar 2021 17:50:59 +0000 (10:50 -0700)
committerJon 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

index cbffe6e..2f2d1dd 100644 (file)
@@ -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":