mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Check for both aarch64 and arm64 arch's for pac-ret
Linux calls it aarch64, but MacOS calls it arm64; pac-ret works on both.
This commit is contained in:
parent
ff0a181852
commit
6a746e1bc9
Notes:
git
2024-08-22 07:36:04 +00:00
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ AS_IF([test "$GCC" = yes], [
|
|||
])
|
||||
|
||||
# aarch64 branch protection
|
||||
AS_CASE(["$target_cpu"], [aarch64], [
|
||||
AS_CASE(["$target_cpu"], [aarch64|arm64], [
|
||||
AS_FOR(option, opt, [-mbranch-protection=pac-ret -msign-return-address=all], [
|
||||
# Try these flags in the _prepended_ position - i.e. we want to try building a program
|
||||
# with CFLAGS="-mbranch-protection=pac-ret $CFLAGS". If the builder has provided different
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue