[llvm] [MLOpt] Add tf_xla_runtime to LLVMDevelopmentExport (PR #124610)
Peter Rong via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 10:53:24 PST 2025
https://github.com/DataCorrupted created https://github.com/llvm/llvm-project/pull/124610
We need to use tf on assert builds, thus requires it to be export as well.
>From ac9bf0d2956032476114923905b13b4ba992acdf Mon Sep 17 00:00:00 2001
From: Peter Rong <PeterRong at meta.com>
Date: Mon, 27 Jan 2025 10:50:58 -0800
Subject: [PATCH] [MLOpt] Add tf_xla_runtime to LLVMDevelopmentExport
We need to use tf on assert builds, thus requires it to be export as well.
Signed-off-by: Peter Rong <PeterRong at meta.com>
---
llvm/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index ad12100fdb5b89..bdf746525e2337 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -1127,6 +1127,8 @@ if (NOT TENSORFLOW_AOT_PATH STREQUAL "")
${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/tf_runtime)
install(TARGETS tf_xla_runtime EXPORT LLVMExports
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} COMPONENT tf_xla_runtime)
+ install(TARGETS tf_xla_runtime EXPORT LLVMDevelopmentExports
+ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} COMPONENT tf_xla_runtime)
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS tf_xla_runtime)
# Once we add more modules, we should handle this more automatically.
if (DEFINED LLVM_OVERRIDE_MODEL_HEADER_INLINERSIZEMODEL)
More information about the llvm-commits
mailing list