mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-03 15:32:09 +00:00
[SEMA MANAGER] fix incorrect logic for CINDEX_VERSION version check
if CINDEX_VERSION_MAJOR is increased to > 0 or CINDEX_VERSION_MAJOR is still 0 but CINDEX_VERSION_MINOR > 63 the new API has to be used Signed-off-by: Wadim Mueller <wadim.mueller@continental-corporation.com>
This commit is contained in:
parent
a5a4313aa0
commit
0d2acd55ef
@ -405,7 +405,7 @@ void buildPreamble(Session &session, CompilerInvocation &ci,
|
||||
|
||||
CclsPreambleCallbacks pc;
|
||||
if (auto newPreamble = PrecompiledPreamble::Build(ci, buf.get(), bounds, *de, fs, session.pch, true,
|
||||
#if CINDEX_VERSION_MAJOR >= 0 && CINDEX_VERSION_MINOR > 63
|
||||
#if CINDEX_VERSION_MAJOR > 0 || CINDEX_VERSION_MINOR > 63
|
||||
"",
|
||||
#endif
|
||||
pc)) {
|
||||
|
Loading…
Reference in New Issue
Block a user