Skip to content

Commit 11bcde0

Browse files
jamesmintrambgianfo
authored andcommitted
Toolchain: Add a gcc patch to fix linker error on M1 host
1 parent e6d28a9 commit 11bcde0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Toolchain/Patches/gcc.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6399,3 +6399,16 @@ index ff44d5ae0..2ca1a4262 100644
63996399
arm*-*-symbianelf*)
64006400
# This is a freestanding configuration; there is nothing to do here.
64016401
;;
6402+
diff -ru a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
6403+
--- a/gcc/config/aarch64/aarch64.h 2021-04-08 13:56:28.000000000 +0200
6404+
+++ b/gcc/config/aarch64/aarch64.h 2021-04-20 22:41:03.000000000 +0200
6405+
@@ -1200,7 +1200,7 @@
6406+
#define MCPU_TO_MARCH_SPEC_FUNCTIONS \
6407+
{ "rewrite_mcpu", aarch64_rewrite_mcpu },
6408+
6409+
-#if defined(__aarch64__)
6410+
+#if defined(__aarch64__) && ! defined(__APPLE__)
6411+
extern const char *host_detect_local_cpu (int argc, const char **argv);
6412+
#define HAVE_LOCAL_CPU_DETECT
6413+
# define EXTRA_SPEC_FUNCTION
6414+

0 commit comments

Comments
 (0)