Git commit f968a50ea74bea561c6c6424b9ef7dee793dffd4 by Allen Winter. Committed on 20/04/2016 at 21:52. Pushed by winterz into branch 'master'. Allow the CLANGXX environmment varible to specify which clang++ to use REVIEW: 127691 M +4 -0 README M +1 -1 clazy http://commits.kde.org/clazy/f968a50ea74bea561c6c6424b9ef7dee793dffd4 diff --git a/README b/README index 7413846..b5a2a5a 100644 --- a/README +++ b/README @@ -61,6 +61,10 @@ Compile your programs with it instead of clang++/g++. Note that this command is just a convenience wrapper which calls: clang++ -Xclang -load -Xclang ClangLazy.so -Xclang -add-plugin -Xclang cla= ng-lazy = +If you have multiple versions of clang installed (say clang++-3.5 and clan= g++-3.6) +you can choose which one to use by setting the CLANGXX environment variabl= e, like so: +export CLANGXX=3Dclang++-3.6; clazy + To build a CMake project use = cmake . -DCMAKE_CXX_COMPILER=3Dclazy diff --git a/clazy b/clazy index d2426a8..a950f79 100755 --- a/clazy +++ b/clazy @@ -1,3 +1,3 @@ #!/usr/bin/env sh = -clang++ -Qunused-arguments -Xclang -load -Xclang ClangLazy.so -Xclang -add= -plugin -Xclang clang-lazy $@ +${CLANGXX:-clang++} -Qunused-arguments -Xclang -load -Xclang ClangLazy.so = -Xclang -add-plugin -Xclang clang-lazy $@