diff options
author | bloodstalker <thabogre@gmail.com> | 2020-11-06 13:51:06 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2020-11-06 13:51:06 +0000 |
commit | baadaf7602af04ba37e86187f6b81c795fa788b0 (patch) | |
tree | 1a857eb90bfe3553d0821dd7236a8703a02b45eb | |
parent | its working now (diff) | |
download | cgrep-baadaf7602af04ba37e86187f6b81c795fa788b0.tar.gz cgrep-baadaf7602af04ba37e86187f6b81c795fa788b0.zip |
updated the readme accordingly with the new cmake buildcmake
-rw-r--r-- | README.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -54,6 +54,8 @@ You can get cgrep from AUR. Thanks to [schra](https://github.com/schra). ### Cygwin You will need `libclang-devel, libllvm-devel, clang, libiconv-devel`. +### Good Ole' Makefiles +**NOTE:the monolithic libtooling library is not supported with the good ole makefiles. Look down below at Cmake for that.**<br/> Assuming you have the llvm/clang libraries (the build file will read your llvm options using `llvm-config` so make sure it's in path), just run: ```bash @@ -75,6 +77,19 @@ make CXX=clang-9 LLVM_CONF=llvm-config-9 For windows builds, cygwin builds are supported. Get llvm and clang along with their sources and build like usual. If you run into problems while building on cygwin, you can take a look at the `appveyor.yml` file under the repository root. +### Cmake +To do an out-of-source build simply do:<br/> +```bash +git clone https://github.com/bloodstalker/cgrep +cd cgrep +git submodule init +git submodule update +mkdir build +cmake ../ -DLLVM_CONF=llvm-config-10 -DCMAKE_CXX_COMPIELR=clang++-10 -DUSE_MONOLITH_LIBTOOLING=ON +make +``` +The 3 variables denote the llvm-config executable name, the clang++ name and finally, the last one tells cmake whether to build using the single c++ libtooling library or just use the old way with all the libtooling libraries.<br/> + ## Usage A simple usage example: |