From 9ec7a1d6ae942037f059d0acd01fb8702531c3bc Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 15 Sep 2021 15:43:48 -0500 Subject: [PATCH] [Hexagon] Allow undefined symbols in libtvm_runtime.so on Hexagon The shared library libtvm_runtime.so (or any other shared library built for Hexagon) will not contain definitions of symbols from libc. To avoid undefined symbol errors, turn that check off when building shared libs for Hexagon. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index abe999428be1..2ab4368a7632 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -305,6 +305,8 @@ if(BUILD_FOR_HEXAGON) # static one. if(NOT BUILD_STATIC_RUNTIME) list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc) + # Allow undefined symbols (there will be some from libc). + set(TVM_NO_UNDEFINED_SYMBOLS "") endif() add_definitions(-D_MACH_I32=int)