Skip to content

Commit 455b4b5

Browse files
Krzysztof Parzyszektrevor-m
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 bff68e8 commit 455b4b5

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
@@ -224,13 +224,6 @@ if(USE_VM_PROFILER)
224224
list(APPEND COMPILER_SRCS ${BACKEND_VM_PROFILER_SRCS})
225225
endif(USE_VM_PROFILER)
226226

227-
if(BUILD_FOR_HEXAGON)
228-
# Add file implementing posix_memalign.
229-
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc)
230-
231-
add_definitions(-D_MACH_I32=int)
232-
endif()
233-
234227
file(GLOB DATATYPE_SRCS src/target/datatype/*.cc)
235228
list(APPEND COMPILER_SRCS ${DATATYPE_SRCS})
236229

@@ -243,6 +236,13 @@ file(GLOB RUNTIME_SRCS
243236
src/runtime/vm/*.cc
244237
)
245238

239+
if(BUILD_FOR_HEXAGON)
240+
# Add file implementing posix_memalign.
241+
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc)
242+
243+
add_definitions(-D_MACH_I32=int)
244+
endif()
245+
246246
# Package runtime rules
247247
if(NOT USE_RTTI)
248248
add_definitions(-DDMLC_ENABLE_RTTI=0)

0 commit comments

Comments
 (0)