Skip to content

Commit d1a4dd8

Browse files
committed
Fixed kernel test cross compile after upgrade to flatbuffers 2.0.6
Flatbuffers 2.0.6 attempts to generate files with built flatc compiler, if Python3 interpretter is available. At crosscompilation, this compiler is build for target archtitecture hence not working on host. This change suppress the file generation.
1 parent 4bf2119 commit d1a4dd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tensorflow/lite/tools/cmake/modules/flatbuffers.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ ExternalProject_Add(flatbuffers-flatc
7575
-DFLATBUFFERS_STATIC_FLATC=OFF
7676
-DFLATBUFFERS_BUILD_FLATHASH=OFF
7777
-DCMAKE_INSTALL_PREFIX=$CACHE{FLATC_INSTALL_PREFIX}
78+
-DCMAKE_DISABLE_FIND_PACKAGE_Python3=TRUE
7879
EXCLUDE_FROM_ALL ${FLATC_EXCLUDE_FROM_ALL}
7980
)

0 commit comments

Comments
 (0)