Skip to content

Commit

Permalink
[Hexagon] Allow undefined symbols in libtvm_runtime.so on Hexagon (ap…
Browse files Browse the repository at this point in the history
…ache#9024)

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.
  • Loading branch information
Krzysztof Parzyszek authored and ylc committed Sep 29, 2021
1 parent fd10240 commit 594ba5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,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)
Expand Down

0 comments on commit 594ba5d

Please sign in to comment.