Skip to content

Commit 0be1dcc

Browse files
committed
ModuleInterface: make -public-module-name an ignorable flag
1 parent bc9babb commit 0be1dcc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/swift/Option/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def export_as : Separate<["-"], "export-as">,
580580
Flags<[FrontendOption, ModuleInterfaceOption]>,
581581
HelpText<"Module name to use when referenced in clients module interfaces">;
582582
def public_module_name : Separate<["-"], "public-module-name">,
583-
Flags<[FrontendOption, ModuleInterfaceOption]>,
583+
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable]>,
584584
HelpText<"Public facing module name to use in diagnostics and documentation">;
585585

586586
def emit_module : Flag<["-"], "emit-module">,

test/Sema/public-module-name.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
/// Check flag in swiftinterface
3030
// RUN: cat %t/LibCore.swiftinterface | %FileCheck --check-prefix=CHECK-FLAG %s
3131
// RUN: cat %t/LibMiddle.swiftinterface | %FileCheck --check-prefix=CHECK-FLAG %s
32-
// CHECK-FLAG: -public-module-name Lib
32+
// CHECK-FLAG: swift-module-flags-ignorable:
33+
// CHECK-SAME-FLAG: -public-module-name Lib
3334

3435
/// Build clients against binary swiftmodules.
3536
/// First errors in files, then diagnostics in other files.

0 commit comments

Comments
 (0)