forked from OSchip/llvm-project
[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:
parent
2767048bae
commit
508939428d
|
@ -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">;
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue