Browse Source

fixes #452. I don't know why the compile commands insterts these?

merge-requests/413/head
Jørgen Lien Sellæg 3 years ago
parent
commit
99388cc472
  1. 2
      src/compile_commands.cpp

2
src/compile_commands.cpp

@ -151,7 +151,7 @@ std::vector<std::string> CompileCommands::get_arguments(const boost::filesystem:
cmd_arguments[c] == "-MF") { // Exclude dependency file generation cmd_arguments[c] == "-MF") { // Exclude dependency file generation
ignore_next = true; ignore_next = true;
} }
else if(cmd_arguments[c] == "-c") { else if(cmd_arguments[c] == "-c" || cmd_arguments[c] == "--") {
} }
else else
arguments.emplace_back(cmd_arguments[c]); arguments.emplace_back(cmd_arguments[c]);

Loading…
Cancel
Save