[PATCH] D83003: Fix missing build dependencies on omp_gen
Jon Roelofs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 07:00:26 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3c72cafdf407: Fix missing build dependencies on omp_gen (authored by jroelofs).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83003/new/
https://reviews.llvm.org/D83003
Files:
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake
llvm/cmake/modules/CMakeLists.txt
llvm/cmake/modules/LLVMConfig.cmake.in
llvm/lib/Transforms/IPO/CMakeLists.txt
llvm/unittests/Frontend/CMakeLists.txt
Index: llvm/unittests/Frontend/CMakeLists.txt
===================================================================
--- llvm/unittests/Frontend/CMakeLists.txt
+++ llvm/unittests/Frontend/CMakeLists.txt
@@ -10,6 +10,9 @@
add_llvm_unittest(LLVMFrontendTests
OpenMPContextTest.cpp
OpenMPIRBuilderTest.cpp
+
+ DEPENDS
+ omp_gen
)
target_link_libraries(LLVMFrontendTests PRIVATE LLVMTestingSupport)
Index: llvm/lib/Transforms/IPO/CMakeLists.txt
===================================================================
--- llvm/lib/Transforms/IPO/CMakeLists.txt
+++ llvm/lib/Transforms/IPO/CMakeLists.txt
@@ -45,4 +45,5 @@
DEPENDS
intrinsics_gen
+ omp_gen
)
Index: llvm/cmake/modules/LLVMConfig.cmake.in
===================================================================
--- llvm/cmake/modules/LLVMConfig.cmake.in
+++ llvm/cmake/modules/LLVMConfig.cmake.in
@@ -104,12 +104,15 @@
@llvm_config_include_buildtree_only_exports@
endif()
-# By creating intrinsics_gen here, subprojects that depend on LLVM's
+# By creating intrinsics_gen and omp_gen here, subprojects that depend on LLVM's
# tablegen-generated headers can always depend on this target whether building
# in-tree with LLVM or not.
if(NOT TARGET intrinsics_gen)
add_custom_target(intrinsics_gen)
endif()
+if(NOT TARGET omp_gen)
+ add_custom_target(omp_gen)
+endif()
set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)
Index: llvm/cmake/modules/CMakeLists.txt
===================================================================
--- llvm/cmake/modules/CMakeLists.txt
+++ llvm/cmake/modules/CMakeLists.txt
@@ -28,6 +28,9 @@
if(intrinsics_gen IN_LIST LLVM_COMMON_DEPENDS)
list(REMOVE_ITEM LLVM_COMMON_DEPENDS intrinsics_gen)
endif()
+if(omp_gen IN_LIST LLVM_COMMON_DEPENDS)
+ list(REMOVE_ITEM LLVM_COMMON_DEPENDS omp_gen)
+endif()
# Generate LLVMConfig.cmake for the build tree.
set(LLVM_CONFIG_CODE "
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -925,6 +925,9 @@
if (TARGET intrinsics_gen)
add_dependencies(obj.${name} intrinsics_gen)
endif()
+ if (TARGET omp_gen)
+ add_dependencies(obj.${name} omp_gen)
+ endif()
set_property(GLOBAL APPEND PROPERTY LLVM_STATIC_EXTENSIONS ${name})
elseif(NOT ARG_NO_MODULE)
add_llvm_library(${name} MODULE ${ARG_UNPARSED_ARGUMENTS})
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -1131,7 +1131,7 @@
# Installing the headers needs to depend on generating any public
# tablegen'd headers.
- add_custom_target(llvm-headers DEPENDS intrinsics_gen)
+ add_custom_target(llvm-headers DEPENDS intrinsics_gen omp_gen)
set_target_properties(llvm-headers PROPERTIES FOLDER "Misc")
if (NOT LLVM_ENABLE_IDE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83003.275102.patch
Type: text/x-patch
Size: 2977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200702/59700971/attachment-0001.bin>
More information about the llvm-commits
mailing list