Added command line to install clang

This commit is contained in:
jamescookmd 2017-06-16 16:41:06 -07:00 committed by Jacob Dufault
parent 61f023fec8
commit 47cce775ba

View File

@ -47,6 +47,8 @@ Building cquery is simple. The external dependencies are few:
- git - git
```bash ```bash
# Ensure your system clang is up-to-date
$ sudo apt-get install clang
$ git clone https://github.com/jacobdufault/cquery --recursive $ git clone https://github.com/jacobdufault/cquery --recursive
$ cd cquery $ cd cquery
$ ./waf configure $ ./waf configure
@ -71,9 +73,9 @@ If you run into issues, you can view debug output by running the
### Part 1: System includes ### Part 1: System includes
cquery will likely fail to resolve system includes like `<vector>` unless the cquery will likely fail to resolve system includes like `stddef.h` or
include path is updated to point to them. Add the system include paths to `<vector>` unless the include path is updated to point to them. Add the
`cquery.index.extraClangArguments`. For example, system include paths to `cquery.index.extraClangArguments`. For example,
```js ```js
{ {
@ -85,7 +87,7 @@ include path is updated to point to them. Add the system include paths to
"-isystem/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8", "-isystem/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8",
"-isystem/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward", "-isystem/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward",
"-isystem/usr/local/include", "-isystem/usr/local/include",
"-isystem/work/chrome/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0/include", "-isystem/PATH/TO/CHROME/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0/include",
"-isystem/usr/include/x86_64-linux-gnu", "-isystem/usr/include/x86_64-linux-gnu",
"-isystem/usr/include", "-isystem/usr/include",
], ],
@ -154,6 +156,10 @@ without running many computations. As a result, there's a large memory overhead.
For example, a full index of Chrome will take about 10gb of memory. If you For example, a full index of Chrome will take about 10gb of memory. If you
exclude v8, webkit, and third_party, it goes down to about 6.5gb. exclude v8, webkit, and third_party, it goes down to about 6.5gb.
# Chromium tips
(Add them here)
# License # License
MIT MIT