aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authornerix <nerixdev@outlook.de>2025-07-15 20:38:43 +0200
committerGitHub <noreply@github.com>2025-07-15 11:38:43 -0700
commit95fa67603c4ab5d75a2f8df328d7da5580466d50 (patch)
tree2709315fbf7b6628fa4af30b3f615a7b57256c5a /lldb/packages/Python/lldbsuite/test
parenta9021e5373f814a7bce561147828dcb7ec2abb24 (diff)
downloadllvm-95fa67603c4ab5d75a2f8df328d7da5580466d50.zip
llvm-95fa67603c4ab5d75a2f8df328d7da5580466d50.tar.gz
llvm-95fa67603c4ab5d75a2f8df328d7da5580466d50.tar.bz2
[LLDB] Compile API tests with exceptions enabled on Windows (#148691)
From #148554 - compile tests with exceptions on Windows (`-fno-exceptions` was added 11 years ago in c7826524acda6a9c8816261d5c48b94dc92935ed). The variant test uses `try {} catch {}` to create variants that are valueless by exception. On other platforms, exceptions are enabled as well. I have no clue why compiling with exceptions will optimize out `a_long_guy` in the changed test (even with `-O0`). Taking the address of that value will ensure it's kept.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/make/Makefile.rules4
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
index 58833e1..8521ca5 100644
--- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
@@ -344,10 +344,6 @@ endif
#----------------------------------------------------------------------
ifeq "$(OS)" "Windows_NT"
ifeq ($(CC_TYPE), clang)
- # Clang for Windows doesn't support C++ Exceptions
- CXXFLAGS += -fno-exceptions
- CXXFLAGS += -D_HAS_EXCEPTIONS=0
-
# MSVC 2015 or higher is required, which depends on c++14, so
# append these values unconditionally.
CXXFLAGS += -fms-compatibility-version=19.0