[:lang cc] Fix list in call for cpu count command

I should find some way to test on Mac OS I guess, or test at least. That would make those small errors easier to catch than trying to review it 1000 times
This commit is contained in:
Gerry Agbobada 2020-10-11 11:07:21 +02:00 committed by GitHub
parent 3e2c98a0a3
commit 79d4903817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -282,7 +282,7 @@ If rtags or rdm aren't available, fail silently instead of throwing a breaking e
(set-evil-initial-state! 'ccls-tree-mode 'emacs)
(setq ccls-sem-highlight-method 'font-lock)
(when (or IS-MAC IS-LINUX)
(let ((cpu-count-command (cond (IS-MAC '("sysctl -n hw.ncpu"))
(let ((cpu-count-command (cond (IS-MAC '("sysctl" "-n" "hw.ncpu"))
(IS-LINUX '("nproc"))
(t (error "unreachable code")))))
(setq ccls-initialization-options