From 319cec6e0a0ef95b13b2b6225a2593a987933545 Mon Sep 17 00:00:00 2001 From: scturtle Date: Thu, 22 Feb 2018 16:19:32 +0800 Subject: [PATCH] fix ci --- src/nt_string.h | 1 + src/project.cc | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nt_string.h b/src/nt_string.h index bc948bc2..4083535e 100644 --- a/src/nt_string.h +++ b/src/nt_string.h @@ -4,6 +4,7 @@ #include #include +#include #include // Nullable null-terminated string, which is null if default constructed, diff --git a/src/project.cc b/src/project.cc index 38799ed3..4b7cffdb 100644 --- a/src/project.cc +++ b/src/project.cc @@ -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=")) {