mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
Restore call to GetPlatformClangArguments
This commit is contained in:
parent
fb304d5c95
commit
997bcdf05a
@ -27,6 +27,8 @@
|
|||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
extern bool gTestOutputMode;
|
||||||
|
|
||||||
struct CompileCommandsEntry {
|
struct CompileCommandsEntry {
|
||||||
std::string directory;
|
std::string directory;
|
||||||
std::string file;
|
std::string file;
|
||||||
@ -208,6 +210,12 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
|
|||||||
if (!AnyStartsWith(args, "-working-directory"))
|
if (!AnyStartsWith(args, "-working-directory"))
|
||||||
result.args.emplace_back("-working-directory=" + entry.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 next_flag_is_path = false;
|
||||||
bool add_next_flag_to_quote_dirs = false;
|
bool add_next_flag_to_quote_dirs = false;
|
||||||
bool add_next_flag_to_angle_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> raw,
|
||||||
std::vector<std::string> expected) {
|
std::vector<std::string> expected) {
|
||||||
g_disable_normalize_path_for_test = true;
|
g_disable_normalize_path_for_test = true;
|
||||||
|
gTestOutputMode = true;
|
||||||
|
|
||||||
Config config;
|
Config config;
|
||||||
ProjectConfig project;
|
ProjectConfig project;
|
||||||
|
Loading…
Reference in New Issue
Block a user