File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
#This file can be used to build binder using preinstalled LLVM/Clang
2
2
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.0 )
3
3
PROJECT (binder CXX C )
4
- SET (VERSION 1.3 .1 )
4
+ SET (VERSION 1.4 .1 )
5
5
option (STATIC "Statically compile Binder. See `documentation/install.rst` for more information." OFF )
6
6
set (CMAKE_VERBOSE_MAKEFILE ON )
7
7
#So far there are exceptions in config.cpp
Original file line number Diff line number Diff line change 29
29
#include < enum.hpp>
30
30
#include < function.hpp>
31
31
#include < options.hpp>
32
+ #include < iostream>
32
33
33
34
using namespace clang ::tooling;
34
35
using namespace llvm ;
@@ -223,7 +224,11 @@ class BinderFrontendAction : public ASTFrontendAction
223
224
224
225
int main (int argc, const char **argv)
225
226
{
227
+ #if ( LLVM_VERSION_MAJOR < 6 )
228
+ llvm::cl::SetVersionPrinter ([]() { std::cout<< " binder " << BINDER_VERSION_STRING << " \n LLVM " << LLVM_VERSION_MAJOR << " ." << LLVM_VERSION_MINOR << " ." << LLVM_VERSION_PATCH << " \n " ; });
229
+ #else
226
230
llvm::cl::SetVersionPrinter ([](llvm::raw_ostream &OS) { OS << " binder " << BINDER_VERSION_STRING << " \n LLVM " << LLVM_VERSION_MAJOR << " ." << LLVM_VERSION_MINOR << " ." << LLVM_VERSION_PATCH << " \n " ; });
231
+ #endif
227
232
#if ( LLVM_VERSION_MAJOR < 13 )
228
233
CommonOptionsParser op (argc, argv, BinderToolCategory);
229
234
ClangTool tool (op.getCompilations (), op.getSourcePathList ());
You can’t perform that action at this time.
0 commit comments