Skip to content

Commit

Permalink
fix(cxx_extractor): remove inapplicable CUDA driver and LLVM flags (#…
Browse files Browse the repository at this point in the history
…5913)

* fix(cxx_extractor): remove inapplicable CUDA driver and LLVM flags

* chore: fix typo in argument
  • Loading branch information
shahms committed Oct 26, 2023
1 parent 5a76596 commit 80d7894
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kythe/cxx/extractor/CommandLineUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ std::vector<std::string> AdjustClangArgsForSyntaxOnly(
"|-W[al],.*"
"|-Xlinker=.*"
"|--for-linker=.*"
"|--mllvm=.*"
"|-f(no-)?data-sections"
"|-f(no-)?function-sections"
"|-f(no-)?omit-frame-pointer"
Expand All @@ -313,7 +314,9 @@ std::vector<std::string> AdjustClangArgsForSyntaxOnly(
"-M[FTQ]"
"|-Xlinker"
"|--for-linker"
"|-Xassembler");
"|-Xassembler"
"|-Xarch_.*"
"|-mllvm");
// Arguments which may match one of the above lists which we want to keep
// regardless.
const FullMatchRegex keep_args("-X(clang|preprocessor).*");
Expand Down

0 comments on commit 80d7894

Please sign in to comment.