summaryrefslogtreecommitdiff
path: root/experimental/mrustc/mrustc-ppc32-default-target-detect.patch
blob: a138c442db8c3047ccd2fe0ebc0c95a8560db105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"