Skip to content

Commit 2d3edd8

Browse files
Krzysztof Parzyszekpfk-beta
authored andcommitted
[Hexagon] Don't use cmake glob for auto-generated source files (apache#10259)
* [Hexagon] Don't use cmake glob for auto-generated source files Glob treats inputs as patterns: if the file with a given name does not exist (is to be generated later), it won't be added to the output. * Restart CI
1 parent caabc0f commit 2d3edd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/Hexagon.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ if(USE_HEXAGON_RPC)
209209
file_glob_append(RUNTIME_HEXAGON_SRCS
210210
"${TVMRT_SOURCE_DIR}/hexagon/host/*.cc"
211211
"${TVMRT_SOURCE_DIR}/hexagon/rpc/android/*.cc"
212+
)
213+
# Add this file separately, because it's auto-generated, and glob won't
214+
# find it during cmake-time.
215+
list(APPEND RUNTIME_HEXAGON_SRCS
212216
"${TVMRT_SOURCE_DIR}/hexagon/rpc/hexagon_rpc_stub.c"
213217
)
214218
list(APPEND TVM_RUNTIME_LINKER_LIBS cdsprpc)

0 commit comments

Comments
 (0)