mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend] Add '-module-name' to FrontendOptions.td.
Swift SVN r10991
This commit is contained in:
@@ -100,6 +100,10 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
|
|||||||
FrameworkSearchPaths.push_back(InputArg->getValue());
|
FrameworkSearchPaths.push_back(InputArg->getValue());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case OPT_module_name:
|
||||||
|
setModuleName(InputArg->getValue());
|
||||||
|
break;
|
||||||
|
|
||||||
case OPT_sdk:
|
case OPT_sdk:
|
||||||
setSDKPath(InputArg->getValue());
|
setSDKPath(InputArg->getValue());
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ def import_search_path : Separate<["-"], "I">,
|
|||||||
def framework_search_path : Separate<["-"], "F">,
|
def framework_search_path : Separate<["-"], "F">,
|
||||||
HelpText<"Add a directory to the framework search path">;
|
HelpText<"Add a directory to the framework search path">;
|
||||||
|
|
||||||
|
def module_name : Separate<["-"], "module-name">,
|
||||||
|
HelpText<"Name of the module to build">;
|
||||||
|
|
||||||
def sdk : Separate<["-"], "sdk">,
|
def sdk : Separate<["-"], "sdk">,
|
||||||
HelpText<"Path to the SDK to build against">;
|
HelpText<"Path to the SDK to build against">;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user