Skip to content

Commit 0459c98

Browse files
committed
Rewrite test to not depend on a compiler bug
(cherry picked from commit b97c8a7)
1 parent f46a9e8 commit 0459c98

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,9 @@ $(EXE): $(OBJECTS)
769769
ifneq "$(CODESIGN)" ""
770770
$(CODESIGN) -s - "$(EXE)"
771771
endif
772+
ifneq "$(HIDE_SWIFTMODULE)" ""
773+
rm -f $(MODULENAME).swiftmodule
774+
endif
772775
else # OS = Linux
773776
ifeq "$(HIDE_SWIFTMODULE)" ""
774777
WRAPPED_SWIFTMODULE = $(MODULENAME).o
@@ -777,7 +780,9 @@ endif
777780
$(EXE): $(OBJECTS)
778781
@echo "### Linking" $(EXE)
779782
$(SWIFTC) $(LD_EXTRAS) $(LD_SWIFTFLAGS) $(WRAPPED_SWIFTMODULE) $^ $(patsubst -g,,$(SWIFTFLAGS)) -o "$(EXE)"
780-
783+
ifneq "$(HIDE_SWIFTMODULE)" ""
784+
rm -f $(MODULENAME).swiftmodule
785+
endif
781786
endif
782787

783788
else # USESWIFTDRIVER = 0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SWIFT_SOURCES := main.swift
2-
SWIFTFLAGS_EXTRAS := -experimental-skip-non-inlinable-function-bodies-without-types
2+
HIDE_SWIFTMODULE := YES
33
include Makefile.rules

0 commit comments

Comments
 (0)