Unverified Commit 6dfcd375 by Krzysztof Parzyszek Committed by GitHub

[Hexagon] Add hexagon_posix.cc to TVM/RT sources in the right place (#5346)

This file was added before the variable with TVM/RT was initialized.
The initialization overwrote the addition.
parent 9bbee96f
......@@ -209,13 +209,6 @@ if(USE_VM_PROFILER)
list(APPEND COMPILER_SRCS ${BACKEND_VM_PROFILER_SRCS})
endif(USE_VM_PROFILER)
if(BUILD_FOR_HEXAGON)
# Add file implementing posix_memalign.
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc)
add_definitions(-D_MACH_I32=int)
endif()
file(GLOB DATATYPE_SRCS src/target/datatype/*.cc)
list(APPEND COMPILER_SRCS ${DATATYPE_SRCS})
......@@ -229,6 +222,13 @@ file(GLOB RUNTIME_SRCS
src/runtime/vm/*.cc
)
if(BUILD_FOR_HEXAGON)
# Add file implementing posix_memalign.
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc)
add_definitions(-D_MACH_I32=int)
endif()
# Package runtime rules
if(NOT USE_RTTI)
add_definitions(-DDMLC_ENABLE_RTTI=0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment