diff options
author | Yifan Hong <elsk@google.com> | 2021-12-20 15:34:42 -0800 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2021-12-20 23:49:22 +0000 |
commit | dc5d39067a7e36a1710f6f3cdc8cd15463415ba8 (patch) | |
tree | 28332ff9b86ebc5b785879b1de898f01d4164c83 | |
parent | f298da8c0defb1761d47d0417dda89b1171ef1a2 (diff) | |
download | interceptor-dc5d39067a7e36a1710f6f3cdc8cd15463415ba8.tar.gz |
Add -x to skipped argument for clang.
clang -x <language>: Treat subsequent input files as having type <language>
Test: builds with cuttlefish
Fixes: 211512820
Change-Id: I32f72a2b1ebfc12d6a0aecc80274009a8659c1b5
-rw-r--r-- | interceptor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interceptor.cc b/interceptor.cc index 4d4e84c..0025ac7 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", + "-isystem", "-I", "-L", "-m", "-soname", "-z", "-x", }; static constexpr std::string_view kOutputOption = "-Wp,-MMD,"; |