From 3deb039b623db7d6ffe563da7b52275e3ee66410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 20 Nov 2018 20:39:35 +0200 Subject: [PATCH] Use SEH exceptions on aarch64 The SEH support for aarch64 should be pretty stable now. --- wrappers/clang-target-wrapper.c | 2 +- wrappers/clang-target-wrapper.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wrappers/clang-target-wrapper.c b/wrappers/clang-target-wrapper.c index a2a4262..0bebadc 100644 --- a/wrappers/clang-target-wrapper.c +++ b/wrappers/clang-target-wrapper.c @@ -293,7 +293,7 @@ int _tmain(int argc, TCHAR* argv[]) { } else if (!_tcscmp(arch, _T("armv7"))) { // Dwarf is the default here. } else if (!_tcscmp(arch, _T("aarch64"))) { - // Dwarf is the default here. + exec_argv[arg++] = _T("-fseh-exceptions"); } if (target_os && !_tcscmp(target_os, _T("mingw32uwp"))) { diff --git a/wrappers/clang-target-wrapper.sh b/wrappers/clang-target-wrapper.sh index 07d2793..6db9330 100755 --- a/wrappers/clang-target-wrapper.sh +++ b/wrappers/clang-target-wrapper.sh @@ -50,7 +50,7 @@ armv7) # Dwarf is the default here. ;; aarch64) - # Dwarf is the default here. + FLAGS="$FLAGS -fseh-exceptions" ;; esac case $TARGET_OS in