mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-23 16:15:07 +00:00
Restore call to GetPlatformClangArguments
This commit is contained in:
parent
b5bd29b702
commit
b272fc427c
@ -27,6 +27,8 @@
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
extern bool gTestOutputMode;
|
||||
|
||||
struct CompileCommandsEntry {
|
||||
std::string directory;
|
||||
std::string file;
|
||||
@ -208,6 +210,12 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
|
||||
if (!AnyStartsWith(args, "-working-directory"))
|
||||
result.args.emplace_back("-working-directory=" + entry.directory);
|
||||
|
||||
if (!gTestOutputMode) {
|
||||
std::vector<const char*> platform = GetPlatformClangArguments();
|
||||
for (auto arg : platform)
|
||||
result.args.push_back(arg);
|
||||
}
|
||||
|
||||
bool next_flag_is_path = false;
|
||||
bool add_next_flag_to_quote_dirs = false;
|
||||
bool add_next_flag_to_angle_dirs = false;
|
||||
@ -622,6 +630,7 @@ TEST_SUITE("Project") {
|
||||
std::vector<std::string> raw,
|
||||
std::vector<std::string> expected) {
|
||||
g_disable_normalize_path_for_test = true;
|
||||
gTestOutputMode = true;
|
||||
|
||||
Config config;
|
||||
ProjectConfig project;
|
||||
|
Loading…
Reference in New Issue
Block a user