From 1c15c8cc8d71653e3e8cc7f24d037efd74f1a1dc Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 24 Mar 2024 20:03:58 +0800 Subject: [PATCH] Disable CFI icall for linux x64 --- src/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/build.sh b/src/build.sh index b32cd9bba9..239de31ba0 100755 --- a/src/build.sh +++ b/src/build.sh @@ -93,6 +93,13 @@ case "$EXTRA_FLAGS" in ;; esac +# See https://github.com/llvm/llvm-project/issues/86430 +if [ "$target_os" = "linux" -a "$target_cpu" = "x64" ]; then + flags="$flags"' + use_cfi_icall=false' +fi + + rm -rf "./$out" mkdir -p out