diff --git a/src/compile_commands.cpp b/src/compile_commands.cpp index 2c5e43a..b13494d 100644 --- a/src/compile_commands.cpp +++ b/src/compile_commands.cpp @@ -151,8 +151,10 @@ std::vector CompileCommands::get_arguments(const boost::filesystem: cmd_arguments[c] == "-MF") { // Exclude dependency file generation ignore_next = true; } - else if(cmd_arguments[c] == "-c" || cmd_arguments[c] == "--") { + else if(cmd_arguments[c] == "-c") { } + else if(cmd_arguments[c] == "--") // End of command options + break; else arguments.emplace_back(cmd_arguments[c]); }