[PECOFF] Ignore /incremental option.

/incremental is an option to enable incremental linking. We will eventually
want to implement the feature for better performance, but in the meantime,
we want to just ignore the option so that the linker does not output unknown
option error when it sees /incremental option.

llvm-svn: 191063
This commit is contained in:
Rui Ueyama 2013-09-20 00:55:37 +00:00
parent 2767048bae
commit 508939428d
2 changed files with 4 additions and 2 deletions

View File

@ -68,3 +68,5 @@ multiclass Q<string name> {
}
def nologo : F<"nologo">;
defm errorreport : Q<"errorreport">;
def incremental : F<"incremental">;
def no_incremental : F<"incremental:no">;

View File

@ -259,8 +259,8 @@ TEST_F(WinLinkParserTest, FailIfMismatch_Mismatch) {
TEST_F(WinLinkParserTest, Ignore) {
// There are some no-op command line options that are recognized for
// compatibility with link.exe.
EXPECT_FALSE(parse("link.exe", "/nologo", "/errorreport:prompt", "a.obj",
nullptr));
EXPECT_FALSE(parse("link.exe", "/nologo", "/errorreport:prompt",
"/incremental", "/incremental:no", "a.obj", nullptr));
EXPECT_EQ("", errorMessage());
EXPECT_EQ(1, inputFileCount());
EXPECT_EQ("a.obj", inputFile(0));