[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
This commit is contained in:
Jon Roelofs 2021-03-17 10:50:59 -07:00
parent bd79b565e3
commit a14263e8f8
1 changed files with 5 additions and 1 deletions

View 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":