Re-add -l flag to Swift interim driver.

This is useful in -i and REPL modes, which do not have a separate linking
step. This version of the -l flag doesn't rely on TranslationUnit. I also
cleaned up the library-loading diagnostics.

Swift SVN r9488
This commit is contained in:
Jordan Rose
2013-10-18 18:52:10 +00:00
parent ce51189a87
commit f7f253320a
8 changed files with 102 additions and 37 deletions

View File

@@ -127,6 +127,10 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
LangOpts.DebugConstraintSolver = true;
break;
case OPT_link_library:
addLinkLibrary(InputArg->getValue(), LibraryKind::Library);
break;
case OPT_std_EQ:
if (strcmp(InputArg->getValue(), "axle") == 0)
LangOpts.Axle = true;