Skip to content

Commit e9309c6

Browse files
Krzysztof Parzyszekdpankratz
authored andcommitted
[Hexagon] Add hexagon_posix.cc to TVM/RT sources in the right place (apache#5346)
This file was added before the variable with TVM/RT was initialized. The initialization overwrote the addition.
1 parent fa429e3 commit e9309c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ if(USE_VM_PROFILER)
209209
list(APPEND COMPILER_SRCS ${BACKEND_VM_PROFILER_SRCS})
210210
endif(USE_VM_PROFILER)
211211

212-
if(BUILD_FOR_HEXAGON)
213-
# Add file implementing posix_memalign.
214-
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc)
215-
216-
add_definitions(-D_MACH_I32=int)
217-
endif()
218-
219212
file(GLOB DATATYPE_SRCS src/target/datatype/*.cc)
220213
list(APPEND COMPILER_SRCS ${DATATYPE_SRCS})
221214

@@ -229,6 +222,13 @@ file(GLOB RUNTIME_SRCS
229222
src/runtime/vm/*.cc
230223
)
231224

225+
if(BUILD_FOR_HEXAGON)
226+
# Add file implementing posix_memalign.
227+
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc)
228+
229+
add_definitions(-D_MACH_I32=int)
230+
endif()
231+
232232
# Package runtime rules
233233
if(NOT USE_RTTI)
234234
add_definitions(-DDMLC_ENABLE_RTTI=0)

0 commit comments

Comments
 (0)