[PATCH] D149270: [LLD][MachO] Do not run Mach-O tests on big-endian hosts
Ulrich Weigand via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 05:50:47 PDT 2023
uweigand updated this revision to Diff 517882.
uweigand added a comment.
Use `sys.byteorder` to test for big-endian hosts.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149270/new/
https://reviews.llvm.org/D149270
Files:
lld/test/MachO/lit.local.cfg
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 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149270.517882.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/ee484a90/attachment.bin>
More information about the llvm-commits
mailing list