File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -769,14 +769,14 @@ bool FrontendOptions::doesActionProduceOutput(ActionType action) {
769
769
case ActionType::EmitImportedModules:
770
770
case ActionType::MergeModules:
771
771
case ActionType::CompileModuleFromInterface:
772
- case ActionType::TypecheckModuleFromInterface:
773
772
case ActionType::DumpTypeInfo:
774
773
case ActionType::EmitPCM:
775
774
case ActionType::DumpPCM:
776
775
case ActionType::ScanDependencies:
777
776
case ActionType::PrintFeature:
778
777
return true ;
779
778
779
+ case ActionType::TypecheckModuleFromInterface:
780
780
case ActionType::NoneAction:
781
781
case ActionType::Immediate:
782
782
case ActionType::REPL:
@@ -800,12 +800,12 @@ bool FrontendOptions::doesActionProduceTextualOutput(ActionType action) {
800
800
case ActionType::Immediate:
801
801
case ActionType::REPL:
802
802
case ActionType::EmitPCM:
803
+ case ActionType::TypecheckModuleFromInterface:
803
804
return false ;
804
805
805
806
case ActionType::Parse:
806
807
case ActionType::ResolveImports:
807
808
case ActionType::Typecheck:
808
- case ActionType::TypecheckModuleFromInterface:
809
809
case ActionType::DumpParse:
810
810
case ActionType::DumpInterfaceHash:
811
811
case ActionType::DumpAST:
Original file line number Diff line number Diff line change @@ -65,8 +65,10 @@ void swift::serializeToBuffers(
65
65
std::unique_ptr<llvm::MemoryBuffer> *moduleDocBuffer,
66
66
std::unique_ptr<llvm::MemoryBuffer> *moduleSourceInfoBuffer,
67
67
const SILModule *M) {
68
+ // Serialization output is disabled.
69
+ if (options.OutputPath .empty ())
70
+ return ;
68
71
69
- assert (!options.OutputPath .empty ());
70
72
{
71
73
FrontendStatsTracer tracer (getContext (DC).Stats ,
72
74
" Serialization, swiftmodule, to buffer" );
Original file line number Diff line number Diff line change 120
120
// RUN: %target-swift-frontend -typecheck-module-from-interface %t/Foo.swiftinterface -disable-implicit-swift-modules \
121
121
// RUN: -module-cache-path %t.module-cache -explicit-swift-module-map-file @%t/map.casid \
122
122
// RUN: -cache-compile-job -cas-path %t/cas -allow-unstable-cache-key-for-testing -swift-version 5 -enable-library-evolution \
123
- // RUN: -explicit-interface-module-build -o /dev/null - Rcache-compile-job 2>&1 | %FileCheck %s --check-prefix=VERIFY-OUTPUT --check-prefix=CACHE-MISS
123
+ // RUN: -explicit-interface-module-build -Rcache-compile-job 2>&1 | %FileCheck %s --check-prefix=VERIFY-OUTPUT --check-prefix=CACHE-MISS
124
124
// RUN: %target-swift-frontend -typecheck-module-from-interface %t/Foo.swiftinterface -disable-implicit-swift-modules \
125
125
// RUN: -module-cache-path %t.module-cache -explicit-swift-module-map-file @%t/map.casid \
126
126
// RUN: -cache-compile-job -cas-path %t/cas -allow-unstable-cache-key-for-testing -swift-version 5 -enable-library-evolution \
127
- // RUN: -explicit-interface-module-build -o %t/check.swiftmodule - Rcache-compile-job 2>&1 | %FileCheck %s --check-prefix=VERIFY-OUTPUT --check-prefix=CACHE-HIT
127
+ // RUN: -explicit-interface-module-build -Rcache-compile-job 2>&1 | %FileCheck %s --check-prefix=VERIFY-OUTPUT --check-prefix=CACHE-HIT
128
128
129
129
// CHECK-DAG: loaded module 'A'
130
130
// CHECK-DAG: loaded module 'B'
Original file line number Diff line number Diff line change 35
35
// RUN: echo "}]" >> %/t/inputs/map.json
36
36
37
37
// RUN: %target-swift-frontend -typecheck-module-from-interface %t/Foo.swiftinterface -module-cache-path %t.module-cache \
38
- // RUN: -o /dev/null - explicit-interface-module-build -explicit-swift-module-map-file %t/inputs/map.json -Rmodule-loading -Xcc -Rmodule-import 2>&1 | %FileCheck %s
38
+ // RUN: -explicit-interface-module-build -explicit-swift-module-map-file %t/inputs/map.json -Rmodule-loading -Xcc -Rmodule-import 2>&1 | %FileCheck %s
39
39
40
40
// CHECK-DAG: loaded module 'Swift'
41
41
// CHECK-DAG: loaded module '_StringProcessing'
You can’t perform that action at this time.
0 commit comments