From e44588c5152f3998a9f5291a519144a49114078e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 28 Dec 2019 09:40:51 -0800 Subject: [PATCH] Build: mention /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include --- Build.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Build.md b/Build.md index 008769f..77f6cbe 100644 --- a/Build.md +++ b/Build.md @@ -203,13 +203,14 @@ To build using MacPorts Clang add CMake flags -DCMAKE_PREFIX_PATH=/opt/local/libexec/llvm-6.0 ``` -With clang < 8, to make header completion work, use a [shell script wrapper](Install#shell-script-wrapper): +See https://github.com/MaskRay/ccls/issues/512 , use a [shell script wrapper](Install#shell-script-wrapper): + ```sh #!/bin/sh -exec /path/to/ccls/Release/ccls -init='{"clang":{"extraArgs":["-isystem", "/Library/Developer/CommandLineTools/usr/include/c++/v1"]}}' "$@" +exec /path/to/ccls/Release/ccls -init='{"clang":{"extraArgs":["-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"]}}' "$@" ``` -See https://github.com/MaskRay/ccls/issues/191#issuecomment-453809905 for details. +With clang < 8, `"-isystem", "/Library/Developer/CommandLineTools/usr/include/c++/v1"` is also needed (https://github.com/MaskRay/ccls/issues/191#issuecomment-453809905) ### FreeBSD