From b19b0c6d0ff05685c6941b4ecf986a7b429663bd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 31 May 2009 23:07:26 +0000 Subject: [PATCH] * incremental.cc (Incremental_inputs::report_command_line): Filter out --incremental-* options. --- gold/ChangeLog | 5 +++++ gold/incremental.cc | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index 1a5b7fa1185..c638b8cfb4d 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-05-31 Mikolaj Zalewski + + * incremental.cc (Incremental_inputs::report_command_line): Filter + out --incremental-* options. + 2009-05-29 Doug Kwan * gold/arm.cc (Output_data_plt_arm): Forward declaration for new diff --git a/gold/incremental.cc b/gold/incremental.cc index 8024551d050..bb40d31dfed 100644 --- a/gold/incremental.cc +++ b/gold/incremental.cc @@ -162,6 +162,12 @@ Incremental_inputs::report_command_line(int argc, const char* const* argv) // Copied from collect_argv in main.cc. for (int i = 1; i < argc; ++i) { + // Adding/removing these options should result in a full relink. + if (strcmp(argv[i], "--incremental-changed") == 0 + || strcmp(argv[i], "--incremental-unchanged") == 0 + || strcmp(argv[i], "--incremental-unknown") == 0) + continue; + args.append(" '"); // Now append argv[i], but with all single-quotes escaped const char* argpos = argv[i]; -- 2.30.2