From 79d4903817eda50bdbc322cdc6e09de8b9f0d951 Mon Sep 17 00:00:00 2001 From: Gerry Agbobada <10496163+gagbo@users.noreply.github.com> Date: Sun, 11 Oct 2020 11:07:21 +0200 Subject: [PATCH] [: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 --- modules/lang/cc/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index a5d5ccbd9..66e2ee266 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -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