Skip to content

Commit 053f7ac

Browse files
committed
[ASTGen] Use 'PURE' bridging mode to improve editor experience
'PURE' briding mode avoids importing things from `swift::` or `llvm::` namespaces. Since it significantly reduces the number of decls to import, editor experience is improved.
1 parent 8f66bf1 commit 053f7ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ASTGen/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let swiftSourceDirectory = #filePath
2828
let swiftSetttings: [SwiftSetting] = [
2929
.interoperabilityMode(.Cxx),
3030
.unsafeFlags([
31-
"-Xcc", "-DCOMPILED_WITH_SWIFT",
31+
"-Xcc", "-DCOMPILED_WITH_SWIFT", "-Xcc", "-DPURE_BRIDGING_MODE",
3232
"-Xcc", "-UIBOutlet", "-Xcc", "-UIBAction", "-Xcc", "-UIBInspectable",
3333
"-Xcc", "-I\(swiftSourceDirectory)/include",
3434
"-Xcc", "-I\(swiftSourceDirectory)/../llvm-project/llvm/include",

0 commit comments

Comments
 (0)