summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-shlib
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-04-25 23:02:47 +0000
committerChris Bieneman <beanz@apple.com>2016-04-25 23:02:47 +0000
commited737d7881ebdadf7d66a03a8502e3899f162ade (patch)
tree9b44bf8e20a8dbece02680eb67203a9328a37d0d /llvm/tools/llvm-shlib
parent51208eaccc82f7dd4783383141d61f81d6a9c07b (diff)
downloadbcm5719-llvm-ed737d7881ebdadf7d66a03a8502e3899f162ade.tar.gz
bcm5719-llvm-ed737d7881ebdadf7d66a03a8502e3899f162ade.zip
[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. llvm-svn: 267490
Diffstat (limited to 'llvm/tools/llvm-shlib')
-rw-r--r--llvm/tools/llvm-shlib/CMakeLists.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
index 2356103a9cd..3fe672d679a 100644
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
+++ b/llvm/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
)
OpenPOWER on IntegriCloud