Skip to content

Commit a144aa7

Browse files
authored
Merge pull request #38966 from xymus/one-way-emit-module
[Driver] Force the test one-way-merge-module-fine to use emit-module
2 parents 8c43800 + 3ddbb88 commit a144aa7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

include/swift/Option/Options.td

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,13 @@ def experimental_cxx_stdlib :
595595

596596
def experimental_emit_module_separately:
597597
Flag<["-"], "experimental-emit-module-separately">,
598-
Flags<[FrontendOption, NoInteractiveOption, HelpHidden]>,
599-
HelpText<"Schedule a swift module emission job instead of a merge-modules job (new Driver only)">;
598+
Flags<[NoInteractiveOption, HelpHidden]>,
599+
HelpText<"Emit module files as a distinct job (new Driver only)">;
600+
601+
def no_emit_module_separately:
602+
Flag<["-"], "no-emit-module-separately">,
603+
Flags<[NoInteractiveOption, HelpHidden]>,
604+
HelpText<"Force using merge-module as the incremental build mode (new Driver only)">;
600605

601606
def requirement_machine_EQ : Joined<["-"], "requirement-machine=">,
602607
Flags<[FrontendOption, ModuleInterfaceOption]>,

test/Driver/Dependencies/one-way-merge-module-fine.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: cp -r %S/Inputs/one-way-fine/* %t
55
// RUN: touch -t 201401240005 %t/*
66

7-
// RUN: cd %t && %swiftc_driver -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -emit-module-path %t/master.swiftmodule -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-FIRST %s
7+
// RUN: cd %t && %swiftc_driver -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -emit-module-path %t/master.swiftmodule -module-name main -j1 -v -no-emit-module-separately 2>&1 | %FileCheck -check-prefix=CHECK-FIRST %s
88

99
// CHECK-FIRST-NOT: warning
1010
// CHECK-FIRST: Handled main.swift
@@ -14,7 +14,7 @@
1414
// swift-driver checks existence of all outputs
1515
// RUN: touch -t 201401240006 %t/{main,other,master}.swift{module,doc,sourceinfo}
1616

17-
// RUN: cd %t && %swiftc_driver -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -emit-module-path %t/master.swiftmodule -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-SECOND %s
17+
// RUN: cd %t && %swiftc_driver -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -emit-module-path %t/master.swiftmodule -module-name main -j1 -v -no-emit-module-separately 2>&1 | %FileCheck -check-prefix=CHECK-SECOND %s
1818

1919
// CHECK-SECOND-NOT: warning
2020
// CHECK-SECOND-NOT: Handled

0 commit comments

Comments
 (0)