Commit 1a50407d authored by Victor Costan's avatar Victor Costan Committed by Commit Bot

Docs: Add OSX instructions for building You-Complete-Me.

Without the --system-clang flag, ycmd fails to find the system headers,
which severely limits its usefulness. The flag is documented as
unsupported, but it's recommended by the maintainers on OSX:
https://github.com/Valloric/YouCompleteMe/issues/2536#issuecomment-333909807

Change-Id: I93aeb12656d32e0fa2099aa0c703fcb6f7154bfb
Reviewed-on: https://chromium-review.googlesource.com/925102Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Reviewed-by: default avatarJianpeng Chao <chaopeng@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537864}
parent 493925d2
...@@ -46,6 +46,12 @@ $ cd ~/.ycmd ...@@ -46,6 +46,12 @@ $ cd ~/.ycmd
$ ./build.py --clang-completer $ ./build.py --clang-completer
``` ```
On Mac, replace the last command above with the following.
```
$ ./build.py --clang-completer --system-libclang
```
## JavaScript lint ## JavaScript lint
Install JavaScript linter for Blink layout tests. Install JavaScript linter for Blink layout tests.
......
...@@ -88,6 +88,12 @@ $ ./build.py --clang-completer ...@@ -88,6 +88,12 @@ $ ./build.py --clang-completer
If it fails with "Your C++ compiler does NOT fully support C++11." but you know If it fails with "Your C++ compiler does NOT fully support C++11." but you know
you have a good compiler, hack cpp/CMakeLists.txt to set CPP11_AVAILABLE true. you have a good compiler, hack cpp/CMakeLists.txt to set CPP11_AVAILABLE true.
On Mac, replace the last command above with the following.
```
$ ./build.py --clang-completer --system-libclang
```
The following extensions might be useful for you as well: The following extensions might be useful for you as well:
* ***Annotator*** - * ***Annotator*** -
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment