You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #39376 from apple/es-mod-alias1
Introduce a module alias option to the frontend. Validate and convert the input to a module alias map to be used by import resolution and sema. rdar://83316886
"module name \"%0\" is reserved for the standard library"
151
151
"%select{|; use -module-name flag to specify an alternate name}1",
152
152
(StringRef, bool))
153
-
154
153
ERROR(error_stdlib_not_found,Fatal,
155
154
"unable to load standard library for target '%0'", (StringRef))
155
+
ERROR(error_module_alias_invalid_format,none,
156
+
"invalid module alias format \"%0\"; make sure to use the format '-module-alias alias_name=underlying_name'", (StringRef))
157
+
ERROR(error_module_alias_forbidden_name,none,
158
+
"invalid module alias \"%0\"; make sure the alias differs from the module name, module ABI name, module link name, and a standard library name", (StringRef))
159
+
ERROR(error_module_alias_duplicate,none,
160
+
"duplicate module alias; the name \"%0\" is already used for a module alias or an underlying name", (StringRef))
// INVALID_MODULE_ALIAS: error: invalid module alias "foo"; make sure the alias differs from the module name, module ABI name, module link name, and a standard library name
// INVALID_MODULE_ALIAS1: error: invalid module alias "Swift"; make sure the alias differs from the module name, module ABI name, module link name, and a standard library name
0 commit comments