Skip to content

Commit

Permalink
[microNPU] fix the CMake to keep utils.cc (apache#9630)
Browse files Browse the repository at this point in the history
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
  • Loading branch information
manupak authored and yangulei committed Jan 11, 2022
1 parent 19a7256 commit 80159b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/modules/contrib/EthosU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ if(USE_ETHOSU)
CONFIGURE_DEPENDS src/relay/backend/contrib/ethosu/*
CONFIGURE_DEPENDS src/contrib/ethosu/cascader/*)
list(APPEND COMPILER_SRCS ${COMPILER_ETHOSU_SRCS})
else()
# Keeping just utils.cc because it has Object definitions
# used by python side
file(GLOB COMPILER_ETHOSU_SRCS
CONFIGURE_DEPENDS src/relay/backend/contrib/ethosu/utils.cc)
list(APPEND COMPILER_SRCS ${COMPILER_ETHOSU_SRCS})
endif(USE_ETHOSU)

0 comments on commit 80159b9

Please sign in to comment.