Skip to content

Commit cff1866

Browse files
committed
Re-enable test under precise compiler invocations
1 parent 37c40dc commit cff1866

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lldb/test/API/lang/swift/clangimporter/objcmain_conflicting_dylibs_bridging_headers/TestSwiftObjCMainConflictingDylibsBridgingHeader.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ def test(self):
4040
'break here', lldb.SBFileSpec('Foo.swift'))
4141
process.Continue()
4242
self.expect("fr var foo", "expected result", substrs=["23"])
43+
precise = self.dbg.GetSetting('symbols.swift-precise-compiler-invocation').GetBooleanValue()
44+
if not precise:
45+
return
4346
# FIXME: This should work with precise compiler invocations.
44-
#self.expect("expression foo", "expected result", substrs=["$R3", "23"])
45-
#self.expect("expression $R3", "expected result", substrs=["23"])
46-
#self.expect("expression $R4", "expected result", substrs=["23"])
47+
self.expect("expression foo", "expected result", substrs=["$R3", "23"])
48+
self.expect("expression $R3", "expected result", substrs=["23"])
49+
self.expect("expression $R4", "expected result", substrs=["23"])

lldb/test/API/lang/swift/clangimporter/objcmain_conflicting_dylibs_bridging_headers/dylib.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ DYLIB_ONLY := YES
22
DYLIB_NAME := $(BASENAME)
33
DYLIB_SWIFT_SOURCES := $(DYLIB_NAME).swift
44
SWIFT_BRIDGING_HEADER := $(DYLIB_NAME)/$(DYLIB_NAME)-Bridging.h
5-
SWIFT_PRECOMPILE_BRIDGING_HEADER := NO
5+
SWIFT_PRECOMPILE_BRIDGING_HEADER := YES
66
SWIFT_OBJC_HEADER = $(DYLIB_NAME)-Swift.h
77
SWIFT_OBJC_INTEROP := 1
88
SWIFTFLAGS_EXTRAS = -Xcc -I$(SRCDIR)

0 commit comments

Comments
 (0)