[Frontend] Add '-module-name' to FrontendOptions.td.

Swift SVN r10991
This commit is contained in:
Argyrios Kyrtzidis
2013-12-08 07:39:49 +00:00
parent fcf3cc2a33
commit 041a49bb95
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -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">;