Skip to content

Commit

Permalink
[LLD] Ignore ELF tests when ld.lld defaults to MinGW
Browse files Browse the repository at this point in the history
Follow-up to D87418.

Differential Revision: https://reviews.llvm.org/D88991
  • Loading branch information
mati865 authored and mstorsjo committed Oct 8, 2020
1 parent 9b2b327 commit 9b58b0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lld/test/CMakeLists.txt
Expand Up @@ -7,6 +7,7 @@ set(LLVM_LIBS_DIR "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/%(build_config)s"
llvm_canonicalize_cmake_booleans(
LLVM_ENABLE_ZLIB
LLVM_ENABLE_LIBXML2
LLD_DEFAULT_LD_LLD_IS_MINGW
)

configure_lit_site_cfg(
Expand Down
4 changes: 4 additions & 0 deletions lld/test/lit.cfg.py
Expand Up @@ -110,3 +110,7 @@
sout, _ = tar_version.communicate()
if 'GNU tar' in sout.decode():
config.available_features.add('gnutar')

# ELF tests expect the default target for ld.lld to be ELF.
if config.ld_lld_default_mingw:
config.excludes.append('ELF')
1 change: 1 addition & 0 deletions lld/test/lit.site.cfg.py.in
Expand Up @@ -16,6 +16,7 @@ config.python_executable = "@Python3_EXECUTABLE@"
config.have_zlib = @LLVM_ENABLE_ZLIB@
config.have_libxml2 = @LLVM_ENABLE_LIBXML2@
config.sizeof_void_p = @CMAKE_SIZEOF_VOID_P@
config.ld_lld_default_mingw = @LLD_DEFAULT_LD_LLD_IS_MINGW@

# Support substitution of the tools and libs dirs with user parameters. This is
# used when we can't determine the tool dir at configuration time.
Expand Down

0 comments on commit 9b58b0c

Please sign in to comment.