Skip to content

Commit

Permalink
aarch64, Darwin: Set a default cpu type when none is configured.
Browse files Browse the repository at this point in the history
We just choose apple-m1 here, since that should work on all released
arm64 [macOS] systems (so far). We are still not handling iOS/iPhoneOS
so this might need revision should we eventually support them.

gcc/ChangeLog:

	* config.gcc (aarch64-*-darwin*): Default to apple-m1 CPU.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
  • Loading branch information
iains committed Mar 9, 2024
1 parent fd2e75d commit 56778f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/config.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,8 @@ aarch64-*-darwin* )
tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-darwin"
tm_defines="${tm_defines} TARGET_DEFAULT_ASYNC_UNWIND_TABLES=1"
tm_defines="${tm_defines} DISABLE_AARCH64_AS_CRC_BUGFIX=1"
# Choose a default CPU version that will work for all current releases.
with_cpu=${with_cpu:-apple-m1}
;;
aarch64*-*-freebsd*)
tm_file="${tm_file} elfos.h ${fbsd_tm_file}"
Expand Down

0 comments on commit 56778f8

Please sign in to comment.