[PECOFF] Ignore /disallowlib.

msvcrt.lib contains "/disallowlib" command line option in its .drectve section.
I couldn't spot any documentation for the option. Ignore it for now so that we
can link the library without error.

llvm-svn: 194114
This commit is contained in:
Rui Ueyama
2013-11-06 00:44:10 +00:00
parent b23b39da21
commit c13f43f4f9
2 changed files with 4 additions and 3 deletions

View File

@@ -92,6 +92,7 @@ def verbose : F<"verbose">;
def delay : QF<"delay">;
def delayload : QF<"delayload">;
def disallowlib : QF<"disallowlib">;
def errorreport : QF<"errorreport">;
def pdb : QF<"pdb">;
def pdbaltpath : QF<"pdbaltpath">;

View File

@@ -463,9 +463,9 @@ TEST_F(WinLinkParserTest, Ignore) {
// compatibility with link.exe.
EXPECT_TRUE(parse("link.exe", "/nologo", "/errorreport:prompt",
"/incremental", "/incremental:no", "/delay:unload",
"/delayload:user32", "/pdb:foo", "/pdbaltpath:bar",
"/verbose", "/verbose:icf", "/wx", "/wx:no", "a.obj",
nullptr));
"/disallowlib:foo", "/delayload:user32", "/pdb:foo",
"/pdbaltpath:bar", "/verbose", "/verbose:icf", "/wx",
"/wx:no", "a.obj", nullptr));
EXPECT_EQ("", errorMessage());
EXPECT_EQ(1, inputFileCount());
EXPECT_EQ("a.obj", inputFile(0));