File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -891,7 +891,7 @@ endmacro(add_llvm_executable name)
891
891
# only an object library is built, and no module is built. This is specific to the Polly use case.
892
892
#
893
893
# The SUBPROJECT argument contains the LLVM project the plugin belongs
894
- # to. If set, the plugin will link statically by default it if the
894
+ # to. If set, the plugin will link statically by default it if the
895
895
# project was enabled.
896
896
function (add_llvm_pass_plugin name )
897
897
cmake_parse_arguments (ARG
@@ -928,6 +928,9 @@ function(add_llvm_pass_plugin name)
928
928
if (TARGET omp_gen )
929
929
add_dependencies (obj.${name} omp_gen )
930
930
endif ()
931
+ if (TARGET acc_gen )
932
+ add_dependencies (obj.${name} acc_gen )
933
+ endif ()
931
934
set_property (GLOBAL APPEND PROPERTY LLVM_STATIC_EXTENSIONS ${name} )
932
935
elseif (NOT ARG_NO_MODULE )
933
936
add_llvm_library (${name} MODULE ${ARG_UNPARSED_ARGUMENTS} )
Original file line number Diff line number Diff line change @@ -104,15 +104,18 @@ if(NOT TARGET LLVMSupport)
104
104
@llvm_config_include_buildtree_only_exports@
105
105
endif ()
106
106
107
- # By creating intrinsics_gen and omp_gen here, subprojects that depend on LLVM's
108
- # tablegen-generated headers can always depend on this target whether building
109
- # in-tree with LLVM or not.
107
+ # By creating intrinsics_gen, omp_gen and acc_gen here, subprojects that depend
108
+ # on LLVM's tablegen-generated headers can always depend on this target whether
109
+ # building in-tree with LLVM or not.
110
110
if (NOT TARGET intrinsics_gen )
111
111
add_custom_target (intrinsics_gen )
112
112
endif ()
113
113
if (NOT TARGET omp_gen )
114
114
add_custom_target (omp_gen )
115
115
endif ()
116
+ if (NOT TARGET acc_gen )
117
+ add_custom_target (acc_gen )
118
+ endif ()
116
119
117
120
set_property (GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On )
118
121
include (${LLVM_CMAKE_DIR} /LLVM-Config.cmake )
You can’t perform that action at this time.
0 commit comments