6 config
.name
= "ShadowCallStack"
9 config
.test_source_root
= os
.path
.dirname(__file__
)
12 config
.suffixes
= [".c", ".cpp", ".m", ".mm", ".ll", ".test"]
14 # Add clang substitutions.
15 config
.substitutions
.append(
19 + " -O0 -fno-sanitize=shadow-call-stack "
20 + config
.target_cflags
25 scs_arch_cflags
= config
.target_cflags
26 if config
.target_arch
== "aarch64":
27 scs_arch_cflags
+= " -ffixed-x18 "
28 config
.substitutions
.append(
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