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