Skip to content

Commit 5375353

Browse files
committed
TensorFlowCompile: Add object file to list of sources rather than LINK_LIBS
Differential Revision: https://reviews.llvm.org/D126736
1 parent 8f99cdd commit 5375353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/cmake/modules/TensorFlowCompile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ function(tf_find_and_compile model default_url default_path test_model_generator
110110
tf_compile(${LLVM_ML_MODELS_ABSOLUTE} ${tag_set} ${signature_def_key} ${fname} ${cpp_class} ${hdr_file} ${obj_file})
111111
endif()
112112

113-
set(GeneratedMLSources ${GeneratedMLSources} ${GENERATED_HEADERS} PARENT_SCOPE)
113+
set(GeneratedMLSources ${GeneratedMLSources} ${GENERATED_OBJS} ${GENERATED_HEADERS} PARENT_SCOPE)
114114
set(MLDeps ${MLDeps} tf_xla_runtime PARENT_SCOPE)
115-
set(MLLinkDeps ${MLLinkDeps} tf_xla_runtime ${GENERATED_OBJS} PARENT_SCOPE)
115+
set(MLLinkDeps ${MLLinkDeps} tf_xla_runtime PARENT_SCOPE)
116116
add_definitions(-DLLVM_HAVE_TF_AOT_${fname_allcaps})
117117
endfunction()

0 commit comments

Comments
 (0)