Add a -l flag to Swift and use it to provide autolinking information.

The spelling of the flag can certainly be changed; I just wanted to get
something up and running.

Swift SVN r7582
This commit is contained in:
Jordan Rose
2013-08-26 18:57:48 +00:00
parent 940d53c864
commit 22912bc3b3
7 changed files with 38 additions and 3 deletions

View File

@@ -123,6 +123,10 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
case OPT_enable_definite_init:
LangOpts.UseDefiniteInit = true;
break;
case OPT_link_library:
addLinkLibrary(InputArg->getValue(), LibraryKind::Library);
break;
}
}