[llvm] r316123 - Don't set static-libs test feature when using LLVM_LINK_LLVM_DYLIB
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 12:37:30 PDT 2017
Author: sbc
Date: Wed Oct 18 12:37:30 2017
New Revision: 316123
URL: http://llvm.org/viewvc/llvm-project?rev=316123&view=rev
Log:
Don't set static-libs test feature when using LLVM_LINK_LLVM_DYLIB
This was causing execname-options.ll to fail on the wasm
waterfall.
Differential Revision: https://reviews.llvm.org/D39022
Modified:
llvm/trunk/test/CMakeLists.txt
llvm/trunk/test/lit.cfg.py
llvm/trunk/test/lit.site.cfg.py.in
Modified: llvm/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=316123&r1=316122&r2=316123&view=diff
==============================================================================
--- llvm/trunk/test/CMakeLists.txt (original)
+++ llvm/trunk/test/CMakeLists.txt Wed Oct 18 12:37:30 2017
@@ -8,7 +8,9 @@ llvm_canonicalize_cmake_booleans(
HAVE_LIBXAR
LLVM_ENABLE_DIA_SDK
LLVM_ENABLE_FFI
- BUILD_SHARED_LIBS)
+ BUILD_SHARED_LIBS
+ LLVM_LINK_LLVM_DYLIB
+ )
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
Modified: llvm/trunk/test/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg.py?rev=316123&r1=316122&r2=316123&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg.py (original)
+++ llvm/trunk/test/lit.cfg.py Wed Oct 18 12:37:30 2017
@@ -185,7 +185,7 @@ if loadable_module:
config.available_features.add('loadable_module')
# Static libraries are not built if BUILD_SHARED_LIBS is ON.
-if not config.build_shared_libs:
+if not config.build_shared_libs and not config.link_llvm_dylib:
config.available_features.add('static-libs')
# Direct object generation
Modified: llvm/trunk/test/lit.site.cfg.py.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.site.cfg.py.in?rev=316123&r1=316122&r2=316123&view=diff
==============================================================================
--- llvm/trunk/test/lit.site.cfg.py.in (original)
+++ llvm/trunk/test/lit.site.cfg.py.in Wed Oct 18 12:37:30 2017
@@ -40,7 +40,8 @@ config.have_libxar = @HAVE_LIBXAR@
config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@
config.enable_ffi = @LLVM_ENABLE_FFI@
config.build_shared_libs = @BUILD_SHARED_LIBS@
-config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@"
+config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@
+config.llvm_libxml2_enabled = @LLVM_LIBXML2_ENABLED@
# Support substitution of the tools_dir with user parameters. This is
# used when we can't determine the tool dir at configuration time.
More information about the llvm-commits
mailing list