aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2022-04-28 16:30:22 -0700
committerYifan Hong <elsk@google.com>2022-04-28 16:30:22 -0700
commite8cfa98602acef64c756e6c77d1de5455843d855 (patch)
tree01f0e712a5f0f266584e4d87037fcfd12c7ac8c4
parentdc5d39067a7e36a1710f6f3cdc8cd15463415ba8 (diff)
downloadinterceptor-e8cfa98602acef64c756e6c77d1de5455843d855.tar.gz
interceptor: Skip --param.HEADmastermain
E.g. for the following command: clang [...] --param asan-instrument-allocas=1 [...] Test: TH Bug: 221278445 Change-Id: I6117d7d8d08b7fe9b5139c0ec0740a8155b93ffd
-rw-r--r--interceptor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/interceptor.cc b/interceptor.cc
index 0025ac7..c898947 100644
--- a/interceptor.cc
+++ b/interceptor.cc
@@ -226,7 +226,7 @@ class CompileLinkerAnalyzer : public Analyzer {
InputsOutputs determine_inputs_outputs(const Command& command) const final {
static constexpr std::array kSkipNextArguments{
- "-isystem", "-I", "-L", "-m", "-soname", "-z", "-x",
+ "-isystem", "-I", "-L", "-m", "-soname", "-z", "-x", "--param",
};
static constexpr std::string_view kOutputOption = "-Wp,-MMD,";