mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:37:44 +00:00
Toolchain: Add a gcc patch to fix linker error on M1 host
This commit is contained in:
parent
e6d28a9dd4
commit
11bcde0bbd
1 changed files with 13 additions and 0 deletions
|
@ -6399,3 +6399,16 @@ index ff44d5ae0..2ca1a4262 100644
|
||||||
arm*-*-symbianelf*)
|
arm*-*-symbianelf*)
|
||||||
# This is a freestanding configuration; there is nothing to do here.
|
# This is a freestanding configuration; there is nothing to do here.
|
||||||
;;
|
;;
|
||||||
|
diff -ru a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
|
||||||
|
--- a/gcc/config/aarch64/aarch64.h 2021-04-08 13:56:28.000000000 +0200
|
||||||
|
+++ b/gcc/config/aarch64/aarch64.h 2021-04-20 22:41:03.000000000 +0200
|
||||||
|
@@ -1200,7 +1200,7 @@
|
||||||
|
#define MCPU_TO_MARCH_SPEC_FUNCTIONS \
|
||||||
|
{ "rewrite_mcpu", aarch64_rewrite_mcpu },
|
||||||
|
|
||||||
|
-#if defined(__aarch64__)
|
||||||
|
+#if defined(__aarch64__) && ! defined(__APPLE__)
|
||||||
|
extern const char *host_detect_local_cpu (int argc, const char **argv);
|
||||||
|
#define HAVE_LOCAL_CPU_DETECT
|
||||||
|
# define EXTRA_SPEC_FUNCTION
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue