[PATCH] D103044: [docs] [CMake] Change recommendations for how to use LLVM_DEFINITIONS
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 25 13:04:55 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa2a65a5bae3c: [docs] [CMake] Change recommendations for how to use LLVM_DEFINITIONS (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103044/new/
https://reviews.llvm.org/D103044
Files:
llvm/docs/CMake.rst
Index: llvm/docs/CMake.rst
===================================================================
--- llvm/docs/CMake.rst
+++ llvm/docs/CMake.rst
@@ -770,7 +770,8 @@
# for your compiler.
include_directories(${LLVM_INCLUDE_DIRS})
- add_definitions(${LLVM_DEFINITIONS})
+ separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
+ add_definitions(${LLVM_DEFINITIONS_LIST})
# Now build our tools
add_executable(simple-tool tool.cpp)
@@ -870,7 +871,8 @@
find_package(LLVM REQUIRED CONFIG)
- add_definitions(${LLVM_DEFINITIONS})
+ separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
+ add_definitions(${LLVM_DEFINITIONS_LIST})
include_directories(${LLVM_INCLUDE_DIRS})
add_subdirectory(<pass name>)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103044.347761.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210525/a0523160/attachment.bin>
More information about the llvm-commits
mailing list