mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
fix ci
This commit is contained in:
parent
892f2ebfc7
commit
319cec6e0a
@ -4,6 +4,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
// Nullable null-terminated string, which is null if default constructed,
|
||||
|
@ -169,8 +169,10 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
|
||||
result.args.push_back(entry.args[i - 1]);
|
||||
|
||||
// Add -working-directory if not provided.
|
||||
if (!AnyStartsWith(entry.args, "-working-directory"))
|
||||
result.args.emplace_back("-working-directory=" + entry.directory);
|
||||
if (!AnyStartsWith(entry.args, "-working-directory")) {
|
||||
result.args.emplace_back("-working-directory");
|
||||
result.args.emplace_back(entry.directory);
|
||||
}
|
||||
|
||||
if (config->mode == ProjectMode::DotCquery &&
|
||||
!AnyStartsWith(entry.args, "-std=")) {
|
||||
|
Loading…
Reference in New Issue
Block a user