diff options
author | Chris Bieneman <beanz@apple.com> | 2016-04-25 23:02:47 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-04-25 23:02:47 +0000 |
commit | 8070b45c6d9c30464f71bb62accf78f9b6f7f387 (patch) | |
tree | 03a0a05708d560e8ee1d4ed5616bb587d98c9c2f /tools/llvm-shlib | |
parent | 90cc544fef3b9f81d9ec913ab79444e7fa65e6eb (diff) |
[CMake] If set we should pass LLVM_VERSION_INFO into config.h
Autoconf used to support setting LLVM_VERSION_INFO and there is some code filtered around llvm in Support/CommandLine.cpp and LTO/LTOCodeGenerator.cpp that uses it if it is set.
We also shouldn't be explicitly setting it as a define on llvm-shlib. It is pointless there because there is no code using it in llvm-shlib, and it is better to have it as part of the generated config.h so that it is available everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r-- | tools/llvm-shlib/CMakeLists.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/llvm-shlib/CMakeLists.txt b/tools/llvm-shlib/CMakeLists.txt index 2356103a9cd..3fe672d679a 100644 --- a/tools/llvm-shlib/CMakeLists.txt +++ b/tools/llvm-shlib/CMakeLists.txt @@ -2,8 +2,6 @@ # library is enabled by setting LLVM_BUILD_LLVM_DYLIB=yes on the CMake # commandline. By default the shared library only exports the LLVM C API. -add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" ) - set(SOURCES libllvm.cpp ) |