summaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2023-05-02 09:33:16 +0200
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2023-05-02 09:33:16 +0200
commita257616bce1ebb2b2071ee01d7d437074a63dacc (patch)
tree09bad8248bb5da1ac6e3ac2d059a4407f05d709d /lld
parentddd9358bcaef5a348dd387a6a27539f7f49646d1 (diff)
downloadllvm-a257616bce1ebb2b2071ee01d7d437074a63dacc.tar.gz
[LLD][MachO] Do not run Mach-O tests on big-endian hosts
Currently, most Mach-O tests fail when executed on a big-endian host. This is because the Mach-O back-end does not perform the necessary byte swaps when accessing the (little-endian) binary file format. For now, simply consider all Mach-O tests unsupported on big-endian hosts, to enable running the test suite at all on such hosts. Reviewed by: oontvoo Differential Revision: https://reviews.llvm.org/D149270
Diffstat (limited to 'lld')
-rw-r--r--lld/test/MachO/lit.local.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/test/MachO/lit.local.cfg b/lld/test/MachO/lit.local.cfg
index 929160d0c001..08bec0a1aff1 100644
--- a/lld/test/MachO/lit.local.cfg
+++ b/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 sys.byteorder == 'big':
+ 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.