summaryrefslogtreecommitdiff
path: root/experimental/mrustc/mrustc-ppc32-default-target-detect.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-12-18 03:03:48 +0000
committerZach van Rijn <me@zv.io>2024-12-18 03:03:48 +0000
commit90c4ae64bb28a5e16eea6a85ddaef7d227ef11e7 (patch)
tree82cfad28f5fb8aab2216147ffb523dc1395b8db5 /experimental/mrustc/mrustc-ppc32-default-target-detect.patch
parent803c617fc610d5872e32c08f362586d550d87701 (diff)
downloadpackages-zv/mrustc.tar.gz
packages-zv/mrustc.tar.bz2
packages-zv/mrustc.tar.xz
packages-zv/mrustc.zip
add adelie rust patches?zv/mrustc
Diffstat (limited to 'experimental/mrustc/mrustc-ppc32-default-target-detect.patch')
-rw-r--r--experimental/mrustc/mrustc-ppc32-default-target-detect.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/experimental/mrustc/mrustc-ppc32-default-target-detect.patch b/experimental/mrustc/mrustc-ppc32-default-target-detect.patch
new file mode 100644
index 000000000..a138c442d
--- /dev/null
+++ b/experimental/mrustc/mrustc-ppc32-default-target-detect.patch
@@ -0,0 +1,16 @@
+diff -ur a/tools/common/target_detect.h b/tools/common/target_detect.h
+--- a/tools/common/target_detect.h 2024-12-17 14:27:52.560000000 +0000
++++ b/tools/common/target_detect.h 2024-12-17 14:37:17.320000000 +0000
+@@ -64,6 +64,12 @@
+ # else
+ # define DEFAULT_TARGET_NAME "powerpc64le-unknown-linux-musl"
+ # endif
++# elif defined(__powerpc__) && defined(__BIG_ENDIAN__)
++# if defined(__USE_GNU)
++# define DEFAULT_TARGET_NAME "powerpc-unknown-linux-gnu"
++# else
++# define DEFAULT_TARGET_NAME "powerpc-unknown-linux-musl"
++# endif
+ # elif defined(__riscv) && __riscv_xlen == 64
+ # if defined(__USE_GNU)
+ # define DEFAULT_TARGET_NAME "riscv64-unknown-linux-gnu"