[PECOFF] Ignore /pdbaltpath option.

/PDBALTPATH:<path> is an option to embed a different path for the PDB file to
the binary than the actual PDB file location. Because we don't support PDB
file, we'll just ignore the option for now.

llvm-svn: 191273
This commit is contained in:
Rui Ueyama 2013-09-24 04:04:00 +00:00
parent ad54b049ef
commit 0e08d7757b
2 changed files with 3 additions and 1 deletions

View File

@ -75,6 +75,7 @@ def incremental : F<"incremental">;
def no_incremental : F<"incremental:no">;
def pdb : Q<"pdb">;
def pdbaltpath : Q<"pdbaltpath">;
def errorreport : Q<"errorreport">;
def delay : Q<"delay">;
def delayload : Q<"delayload">;

View File

@ -364,7 +364,8 @@ TEST_F(WinLinkParserTest, Ignore) {
// compatibility with link.exe.
EXPECT_FALSE(parse("link.exe", "/nologo", "/errorreport:prompt",
"/incremental", "/incremental:no", "/delay:unload",
"/delayload:user32", "/pdb:foo", "a.obj", nullptr));
"/delayload:user32", "/pdb:foo", "/pdbaltpath:bar",
"a.obj", nullptr));
EXPECT_EQ("", errorMessage());
EXPECT_EQ(1, inputFileCount());
EXPECT_EQ("a.obj", inputFile(0));