mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Restore platform arguments
This commit is contained in:
parent
504cb8d7fd
commit
fb304d5c95
@ -259,6 +259,10 @@ bool IsSymLink(const std::string& path) {
|
||||
return lstat(path.c_str(), &buf) == 0 && S_ISLNK(buf.st_mode);
|
||||
}
|
||||
|
||||
std::vector<const char*> GetPlatformClangArguments() {
|
||||
return {};
|
||||
}
|
||||
|
||||
void FreeUnusedMemory() {
|
||||
#if defined(__GLIBC__)
|
||||
malloc_trim(0);
|
||||
|
@ -129,6 +129,25 @@ bool IsSymLink(const std::string& path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::vector<const char*> GetPlatformClangArguments() {
|
||||
//
|
||||
// Found by executing
|
||||
//
|
||||
// $ clang++ -E -x c++ - -v
|
||||
//
|
||||
// https://clang.llvm.org/docs/MSVCCompatibility.html
|
||||
//
|
||||
//
|
||||
// These options are only needed if clang is targeting the msvc triple,
|
||||
// which depends on how clang was build for windows. clang downloaded from
|
||||
// releases.llvm.org defaults to msvc, so cquery does as well.
|
||||
//
|
||||
// https://github.com/cquery-project/cquery/issues/509 has more context.
|
||||
//
|
||||
return {"-fms-extensions", "-fms-compatibility",
|
||||
"-fdelayed-template-parsing"};
|
||||
}
|
||||
|
||||
void FreeUnusedMemory() {}
|
||||
|
||||
bool RunObjectiveCIndexTests() {
|
||||
|
Loading…
Reference in New Issue
Block a user