diff options
author | Stella Stamenova <stilis@microsoft.com> | 2018-11-29 22:15:23 +0000 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2018-11-29 22:15:23 +0000 |
commit | c84754e7f93f3c456ca44636131fdc698d59b809 (patch) | |
tree | ed817e354db7c6097d70f42619a114dc58b06f9c /lldb/packages/Python/lldbsuite/test | |
parent | 66ea30c7bc926806dcfedd54ac9a17f7baeccbeb (diff) | |
download | bcm5719-llvm-c84754e7f93f3c456ca44636131fdc698d59b809.tar.gz bcm5719-llvm-c84754e7f93f3c456ca44636131fdc698d59b809.zip |
[lldbsuite] Build with -gdwarf on Windows
Earlier this month there was a change in clang that defaulted to using codeview rather than dwarf on Windows. Since all the tests rely on dwarf, we need to explicitly request dwarf when building on Windows.
llvm-svn: 347924
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index 3710acc3074..a2dc6cc6659 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -257,6 +257,12 @@ endif CFLAGS += -I$(SRCDIR) -include $(THIS_FILE_DIR)test_common.h -I$(THIS_FILE_DIR) CFLAGS += $(NO_LIMIT_DEBUG_INFO_FLAGS) $(ARCH_CFLAGS) $(CFLAGS_EXTRAS) +# If the OS is Windows, we need to pass -gdwarf to clang, otherwise it will build +# with codeview by default but all the tests rely on dwarf. +ifeq "$(OS)" "Windows_NT" + CFLAGS += -gdwarf +endif + # Use this one if you want to build one part of the result without debug information: ifeq "$(OS)" "Darwin" CFLAGS_NO_DEBUG = -O0 $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) $(ARCH_CFLAGS) $(CFLAGS_EXTRAS) |