Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / shadowcallstack / lit.cfg.py
blob70a6b16174c4bc5180b4ec1c3875162f8a709847
1 # -*- Python -*-
3 import os
5 # Setup config name.
6 config.name = "ShadowCallStack"
8 # Setup source root.
9 config.test_source_root = os.path.dirname(__file__)
11 # Test suffixes.
12 config.suffixes = [".c", ".cpp", ".m", ".mm", ".ll", ".test"]
14 # Add clang substitutions.
15 config.substitutions.append(
17 "%clang_noscs ",
18 config.clang
19 + " -O0 -fno-sanitize=shadow-call-stack "
20 + config.target_cflags
21 + " ",
25 scs_arch_cflags = config.target_cflags
26 if config.target_arch == "aarch64":
27 scs_arch_cflags += " -ffixed-x18 "
28 config.substitutions.append(
30 "%clang_scs ",
31 config.clang + " -O0 -fsanitize=shadow-call-stack " + scs_arch_cflags + " ",
35 if config.host_os not in ["Linux"] or config.target_arch not in ["aarch64", "riscv64"]:
36 config.unsupported = True