Index: lld/test/MachO/lit.local.cfg =================================================================== --- lld/test/MachO/lit.local.cfg +++ lld/test/MachO/lit.local.cfg @@ -2,6 +2,12 @@ import os +# FIXME: The MachO back-end currently does not respect endianness when +# accessing binary data structures, and therefore only works correctly +# on little-endian host systems. Skip all tests on big-endian hosts. +if 's390x' in config.host_triple: + config.unsupported = True + # We specify the most commonly-used archs and platform versions in our tests # here. Tests which need different settings can just append to this, as only # the last value will be used. Index: lld/test/lit.site.cfg.py.in =================================================================== --- lld/test/lit.site.cfg.py.in +++ lld/test/lit.site.cfg.py.in @@ -15,6 +15,7 @@ config.lld_obj_root = "@LLD_BINARY_DIR@" config.lld_libs_dir = lit_config.substitute("@CURRENT_LIBS_DIR@") config.lld_tools_dir = lit_config.substitute("@CURRENT_TOOLS_DIR@") +config.host_triple = "@LLVM_HOST_TRIPLE@" config.target_triple = "@LLVM_TARGET_TRIPLE@" config.python_executable = "@Python3_EXECUTABLE@" config.have_zlib = @LLVM_ENABLE_ZLIB@