OSDN Git Service

[CMake] If set we should pass LLVM_VERSION_INFO into config.h
authorChris Bieneman <beanz@apple.com>
Mon, 25 Apr 2016 23:02:47 +0000 (23:02 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 25 Apr 2016 23:02:47 +0000 (23:02 +0000)
commit8070b45c6d9c30464f71bb62accf78f9b6f7f387
tree03a0a05708d560e8ee1d4ed5616bb587d98c9c2f
parent90cc544fef3b9f81d9ec913ab79444e7fa65e6eb
[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
include/llvm/Config/config.h.cmake
tools/llvm-shlib/CMakeLists.txt