mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00
build: fix arm64 cross-compilation bug on non-arm machines
PR-URL: https://github.com/nodejs/node/pull/52559 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
parent
ba252a45d6
commit
cdd03ef395
14
node.gyp
14
node.gyp
@ -482,8 +482,20 @@
|
||||
},
|
||||
|
||||
'conditions': [
|
||||
# Pointer authentication for ARM64.
|
||||
['target_arch=="arm64"', {
|
||||
'cflags': ['-mbranch-protection=standard'], # Pointer authentication.
|
||||
'target_conditions': [
|
||||
['_toolset=="host"', {
|
||||
'conditions': [
|
||||
['host_arch=="arm64"', {
|
||||
'cflags': ['-mbranch-protection=standard'],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
['_toolset=="target"', {
|
||||
'cflags': ['-mbranch-protection=standard'],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
['OS in "aix os400"', {
|
||||
'ldflags': [
|
||||
|
Loading…
Reference in New Issue
Block a user