[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
Tue May 2 00:35:26 PDT 2023


This revision was automatically updated to reflect the committed changes.
uweigand marked an inline comment as done.
Closed by commit rGa257616bce1e: [LLD][MachO] Do not run Mach-O tests on big-endian hosts (authored by uweigand).

Repository:
  rG LLVM Github Monorepo

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.518647.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230502/40e2afdc/attachment.bin>


More information about the llvm-commits mailing list