OSDN Git Service

[compiler-rt][scudo][LIT] Use target_suffix instead of target-arch
authorJinsong Ji <jji@us.ibm.com>
Wed, 20 May 2020 02:35:44 +0000 (02:35 +0000)
committerJinsong Ji <jji@us.ibm.com>
Wed, 20 May 2020 03:34:50 +0000 (03:34 +0000)
Per target runtime dir may change the suffix of shared libs.
We can not assume we are always building with per_target_runtime_dir on.

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D80243

compiler-rt/test/scudo/lit.cfg.py

index dc96044..236d645 100644 (file)
@@ -10,7 +10,7 @@ config.test_source_root = os.path.dirname(__file__)
 
 # Path to the shared library
 shared_libscudo = os.path.join(config.compiler_rt_libdir, "libclang_rt.scudo%s.so" % config.target_suffix)
-shared_minlibscudo = os.path.join(config.compiler_rt_libdir, "libclang_rt.scudo_minimal-%s.so" % config.target_arch)
+shared_minlibscudo = os.path.join(config.compiler_rt_libdir, "libclang_rt.scudo_minimal%s.so" % config.target_suffix)
 
 # Test suffixes.
 config.suffixes = ['.c', '.cpp', '.test']