We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a8c2b commit 4e2792bCopy full SHA for 4e2792b
tools/cmake/Codegen.cmake
@@ -277,7 +277,11 @@ function(gen_operators_lib)
277
endif()
278
279
if(GEN_KERNEL_LIBS)
280
- message(FATAL_ERROR "Currently dtype selective build is only supported for portable_kernels but {${GEN_KERNEL_LIBS}} were provided!")
+ if(GEN_DTYPE_SELECTIVE_BUILD)
281
+ message(FATAL_ERROR "Currently dtype selective build is only supported for portable_kernels but {${GEN_KERNEL_LIBS}} were provided!")
282
+ else()
283
+ target_link_libraries(${GEN_LIB_NAME} PUBLIC ${GEN_KERNEL_LIBS})
284
+ endif()
285
286
287
0 commit comments