Merge pull request #4718 from daedric/ts/fix-cc-module

Use new CPU counter function in cc module
This commit is contained in:
Henrik Lissner 2021-03-02 10:34:51 -05:00 committed by GitHub
commit 0cd2a411d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,7 @@ If rtags or rdm aren't available, fail silently instead of throwing a breaking e
(when (or IS-MAC IS-LINUX)
(setq ccls-initialization-options
`(:index (:trackDependency 1
:threads ,(max 1 (/ (doom-num-cpus) 2))))))
:threads ,(max 1 (/ (doom-system-cpus) 2))))))
(when IS-MAC
(setq ccls-initialization-options
(append ccls-initialization-options