[PATCH] D31125: Fix evaluation of LLVM_DEFINITIONS

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 19 06:46:36 PDT 2017


sepavloff created this revision.

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.


https://reviews.llvm.org/D31125

Files:
  CMakeLists.txt
  cmake/config-ix.cmake
  cmake/modules/AddLLVMDefinitions.cmake
  cmake/modules/HandleLLVMOptions.cmake
  tools/llvm-config/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31125.92275.patch
Type: text/x-patch
Size: 5611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170319/50f52f22/attachment.bin>


More information about the llvm-commits mailing list