llvm/tools/llvm-config
Serge Pavlov bbcc0db379 Fix evaluation of LLVM_DEFINITIONS
CMake variable LLVM_DEFINITIONS collects preprocessor definitions provided
for host compiler that builds llvm components. A function
add_llvm_definitions was introduced in AddLLVMDefinitions.cmake to keep
track of these definitions and was intended to be a replacement for CMake
command add_definitions. Actually in many cases add_definitions is still
used and the content of LLVM_DEFINITIONS is not actual now. On the other
hand the current version of CMake allows getting set of definitions in a
more convenient way. This fix implements evaluation of the variable by
reading corresponding cmake property.

Differential Revision: https://reviews.llvm.org/D31125


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298336 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-21 04:03:24 +00:00
..
BuildVariables.inc.in [llvm-config] Canonicalize CMake booleans to 0/1 2017-01-10 19:55:51 +00:00
CMakeLists.txt Fix evaluation of LLVM_DEFINITIONS 2017-03-21 04:03:24 +00:00
llvm-config.cpp [llvm-config] Fix obviously wrong code in parsing DyLib components. 2017-01-12 19:47:38 +00:00