diff options
author | Petr Hosek <phosek@chromium.org> | 2018-06-28 03:11:52 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-06-28 03:11:52 +0000 |
commit | 887f26d4703616934fd7a11b6649f605e1c7b4e3 (patch) | |
tree | 6cdd1b4f61afe4300fcd4fd8aa41e6b1e8cfcdc6 /compiler-rt/test/builtins/Unit/lit.cfg | |
parent | 4ba041fa25b7e34bd10c598b53b04f023681b322 (diff) | |
download | bcm5719-llvm-887f26d4703616934fd7a11b6649f605e1c7b4e3.tar.gz bcm5719-llvm-887f26d4703616934fd7a11b6649f605e1c7b4e3.zip |
Support for multiarch runtimes layout
This change adds a support for multiarch style runtimes layout, so in
addition to the existing layout where runtimes get installed to:
lib/clang/$version/lib/$os
Clang now allows runtimes to be installed to:
lib/clang/$version/$target/lib
This also includes libc++, libc++abi and libunwind; today those are
assumed to be in Clang library directory built for host, with the
new layout it is possible to install libc++, libc++abi and libunwind
into the runtime directory built for different targets.
The use of new layout is enabled by setting the
LLVM_ENABLE_RUNTIME_TARGET_DIR CMake variable and is supported by both
projects and runtimes layouts. The runtimes CMake build has been further
modified to use the new layout when building runtimes for multiple
targets.
Differential Revision: https://reviews.llvm.org/D45604
llvm-svn: 335809
Diffstat (limited to 'compiler-rt/test/builtins/Unit/lit.cfg')
-rw-r--r-- | compiler-rt/test/builtins/Unit/lit.cfg | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/builtins/Unit/lit.cfg b/compiler-rt/test/builtins/Unit/lit.cfg index 0e17e479e6b..4b63948b5ef 100644 --- a/compiler-rt/test/builtins/Unit/lit.cfg +++ b/compiler-rt/test/builtins/Unit/lit.cfg @@ -26,12 +26,12 @@ config.test_source_root = os.path.dirname(__file__) # Path to the static library is_msvc = get_required_attr(config, "builtins_is_msvc") if is_msvc: - base_lib = os.path.join(config.compiler_rt_libdir, "clang_rt.builtins-%s.lib " - % config.target_arch) + base_lib = os.path.join(config.compiler_rt_libdir, "clang_rt.builtins%s.lib " + % config.target_suffix) config.substitutions.append( ("%librt ", base_lib) ) else: - base_lib = os.path.join(config.compiler_rt_libdir, "libclang_rt.builtins-%s.a" - % config.target_arch) + base_lib = os.path.join(config.compiler_rt_libdir, "libclang_rt.builtins%s.a" + % config.target_suffix) config.substitutions.append( ("%librt ", base_lib + ' -lc -lm ') ) builtins_source_dir = os.path.join( |