Skip to content

Commit ed3fc3a

Browse files
committed
FrontendOpts: teach the compiler to accept project name via an argument
the blocklist mechanism supports using project name as a key for specific actions. We usually retrieve that name via other means such as querying env vars, which isn't CAS friendly. Instead, we should pass the ownining project name down to the compiler via a formal compiler argument.
1 parent db12dff commit ed3fc3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/Option/Options.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,11 @@ def module_name : Separate<["-"], "module-name">,
541541
Flags<[FrontendOption, ModuleInterfaceOption, SwiftAPIExtractOption,
542542
SwiftSymbolGraphExtractOption]>,
543543
HelpText<"Name of the module to build">;
544+
def project_name : Separate<["-"], "project-name">,
545+
Flags<[FrontendOption, ModuleInterfaceOption, SwiftAPIExtractOption,
546+
SwiftSymbolGraphExtractOption]>,
547+
HelpText<"Name of the project this module to build belongs to">;
548+
544549
def module_name_EQ : Joined<["-"], "module-name=">, Flags<[FrontendOption]>,
545550
Alias<module_name>;
546551

0 commit comments

Comments
 (0)