[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / compiler-rt / test / safestack / lit.cfg.py
blob4ab9c1ce70bac34ef98e81baf27a828acb13809b
1 # -*- Python -*-
3 import os
5 # Setup config name.
6 config.name = "SafeStack-" + config.name_suffix
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_nosafestack ",
18 config.clang + config.target_cflags + " -O0 -fno-sanitize=safe-stack ",
21 config.substitutions.append(
23 "%clang_safestack ",
24 config.clang + config.target_cflags + " -O0 -fsanitize=safe-stack ",
28 if config.lto_supported:
29 config.substitutions.append(
31 r"%clang_lto_safestack ",
32 " ".join([config.clang] + config.lto_flags + ["-fsanitize=safe-stack "]),
36 if config.host_os not in ["Linux", "FreeBSD", "NetBSD", "SunOS"]:
37 config.unsupported = True