mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 21:58:08 +00:00
Build: Mac OS X
parent
f258a9ca6e
commit
e70a9478cb
8
Build.md
8
Build.md
@ -165,6 +165,14 @@ To build using MacPorts Clang add CMake flags `-DSYSTEM_CLANG=on
|
||||
-DCMAKE_PREFIX_PATH=/opt/local/libexec/llvm-6.0 -DLLVM_ENABLE_RTTI=on
|
||||
-DUSE_SHARED_LLVM=on`
|
||||
|
||||
With clang < 8, to make header completion work, 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"]}}' "$@"
|
||||
```
|
||||
|
||||
See https://github.com/MaskRay/ccls/issues/191#issuecomment-453809905 for details.
|
||||
|
||||
## FreeBSD
|
||||
|
||||
* [devel/ccls](https://www.freshports.org/devel/ccls)
|
||||
|
Loading…
Reference in New Issue
Block a user