Skip to content

Commit

Permalink
[Hexagon] Add hexagon_posix.cc to TVM/RT sources in the right place (a…
Browse files Browse the repository at this point in the history
…pache#5346)

This file was added before the variable with TVM/RT was initialized.
The initialization overwrote the addition.
  • Loading branch information
Krzysztof Parzyszek authored and dpankratz committed Apr 24, 2020
1 parent fa429e3 commit e9309c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand All @@ -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)
Expand Down

0 comments on commit e9309c6

Please sign in to comment.