From c257e69d3046c0a463bda59eb2a4ffa595b6975e Mon Sep 17 00:00:00 2001 From: Jason Erb Date: Thu, 1 Dec 2022 14:33:12 -0500 Subject: [PATCH] Fix `Unrecognized command line option -msign-return-address=all` Ticket: https://github.com/nodejs/node/issues/42888 --- configure.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.py b/configure.py index 7006ee65816989..0b0819d67cf924 100755 --- a/configure.py +++ b/configure.py @@ -1289,10 +1289,11 @@ def configure_node(o): o['variables']['want_separate_host_toolset'] = int(cross_compiling) - # Enable branch protection for arm64 - if target_arch == 'arm64': - o['cflags']+=['-msign-return-address=all'] - o['variables']['arm_fpu'] = options.arm_fpu or 'neon' + # See: https://github.com/nodejs/node/issues/42888 + # # Enable branch protection for arm64 + # if target_arch == 'arm64': + # o['cflags']+=['-msign-return-address=all'] + # o['variables']['arm_fpu'] = options.arm_fpu or 'neon' if options.node_snapshot_main is not None: if options.shared: