From 9e518c88c7019e71f0ee6203c1c9f6cf819e792e Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwe.korn@quantco.com>
Date: Thu, 25 Aug 2022 12:03:04 +0200
Subject: [PATCH] Disable (unsupported) branch protection

---
 configure.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/configure.py b/configure.py
index e105d4e0..e53a83f3 100755
--- a/configure.py
+++ b/configure.py
@@ -1237,10 +1237,6 @@ 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']
-
   if options.node_snapshot_main is not None:
     if options.shared:
       # This should be possible to fix, but we will need to refactor the
-- 
2.37.2

