Skip to content

Commit 10d702f

Browse files
authored
Merge pull request #1468 from tshortli/lazy-typecheck-emit-module-only
Remove special handling of the -experimental-lazy-typecheck flag
2 parents c5db212 + 98f1231 commit 10d702f

File tree

4 files changed

+63
-40
lines changed

4 files changed

+63
-40
lines changed

Sources/SwiftDriver/Driver/Driver.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,7 @@ extension Driver {
20962096
case .indexFile:
20972097
compilerOutputType = .indexData
20982098

2099-
case .parse, .resolveImports, .typecheck, .experimentalLazyTypecheck,
2099+
case .parse, .resolveImports, .typecheck,
21002100
.dumpParse, .printAst, .dumpTypeRefinementContexts, .dumpScopeMaps,
21012101
.dumpInterfaceHash, .dumpTypeInfo, .verifyDebugInfo:
21022102
compilerOutputType = nil

Sources/SwiftDriver/Jobs/EmitModuleJob.swift

-5
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ extension Driver {
8585

8686
commandLine.appendFlags("-frontend", "-emit-module", "-experimental-skip-non-inlinable-function-bodies-without-types")
8787

88-
if parsedOptions.hasArgument(.experimentalLazyTypecheck) {
89-
commandLine.appendFlag("-experimental-lazy-typecheck")
90-
commandLine.appendFlag("-experimental-skip-non-exportable-decls")
91-
}
92-
9388
// Add the inputs.
9489
for input in self.inputFiles where input.type.isPartOfSwiftCompilation {
9590
commandLine.append(.path(input.file))

0 commit comments

Comments
 (0)