Skip to content

Commit 4f6d1e4

Browse files
Merge pull request #8537 from adrian-prantl/cherry-pick-next-Rewrite-test-to-not-depend-on-a-compiler-bug
[Cherry-pick into next] Rewrite test to not depend on a compiler bug
2 parents f46a9e8 + 0459c98 commit 4f6d1e4

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)