diff --git a/src/compile_commands.cpp b/src/compile_commands.cpp index 731f95b..2c5e43a 100644 --- a/src/compile_commands.cpp +++ b/src/compile_commands.cpp @@ -151,7 +151,7 @@ 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") { + else if(cmd_arguments[c] == "-c" || cmd_arguments[c] == "--") { } else arguments.emplace_back(cmd_arguments[c]);