summaryrefslogtreecommitdiff
path: root/test/xray/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'test/xray/lit.cfg')
-rw-r--r--test/xray/lit.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/xray/lit.cfg b/test/xray/lit.cfg
index b07dcbd79..2852bdb74 100644
--- a/test/xray/lit.cfg
+++ b/test/xray/lit.cfg
@@ -31,6 +31,11 @@ config.substitutions.append(
('%clangxx_xray', build_invocation(clang_xray_cxxflags)))
config.substitutions.append(
('%llvm_xray', llvm_xray))
+config.substitutions.append(
+ ('%xraylib',
+ ('-lm -lpthread -ldl -lrt -L%s '
+ '-Wl,-whole-archive -lclang_rt.xray-%s -Wl,-no-whole-archive')
+ % (config.compiler_rt_libdir, config.host_arch)))
# Default test suffixes.
config.suffixes = ['.c', '.cc', '.cpp']