add LLVM_VERSION_MAJOR and _MINOR defines
This is useful for clients that want to maintain compatibility across multiple releases of LLVM. Currently users like Klee and Mesa all have to roll their own 'parse llvm-config --version output and generate defines' solution. Also reuse the new macros so that version information is less redundant/likely to fall out of sync again in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150405 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- CMakeLists.txt 6 additions, 3 deletionsCMakeLists.txt
- autoconf/configure.ac 2 additions, 0 deletionsautoconf/configure.ac
- cmake/modules/LLVMConfig.cmake.in 2 additions, 0 deletionscmake/modules/LLVMConfig.cmake.in
- configure 11 additions, 1 deletionconfigure
- include/llvm/Config/config.h.cmake 6 additions, 0 deletionsinclude/llvm/Config/config.h.cmake
- include/llvm/Config/config.h.in 6 additions, 0 deletionsinclude/llvm/Config/config.h.in
- include/llvm/Config/llvm-config.h.cmake 6 additions, 0 deletionsinclude/llvm/Config/llvm-config.h.cmake
- include/llvm/Config/llvm-config.h.in 6 additions, 0 deletionsinclude/llvm/Config/llvm-config.h.in
Loading
Please register or sign in to comment