mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
[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:
@@ -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">;
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user