Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lite/tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ function build_opt {
rm -rf build.opt
mkdir -p build.opt
cd build.opt
opt_arch=$(echo `uname -p`)
opt_arch=$(echo `uname -m`)
with_x86=OFF
if [ $opt_arch == "aarch64" ]; then
if [ $opt_arch == "aarch64" ] || [ $opt_arch == "armv6l" ] || [ $opt_arch == "armv7" ] || [ $opt_arch == "armv7l" ]; then
with_x86=OFF
else
with_x86=ON
Expand Down
8 changes: 8 additions & 0 deletions lite/tools/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,16 @@ function build_opt {
rm -rf $build_dir
mkdir -p $build_dir
cd $build_dir
opt_arch=$(echo `uname -m`)
with_x86=OFF
if [ $opt_arch == "aarch64" ] || [ $opt_arch == "armv6l" ] || [ $opt_arch == "armv7" ] || [ $opt_arch == "armv7l" ]; then
with_x86=OFF
else
with_x86=ON
fi
cmake $workspace \
-DLITE_ON_MODEL_OPTIMIZE_TOOL=ON \
-DLITE_WITH_X86=${with_x86} \
-DWITH_TESTING=OFF \
-DLITE_BUILD_EXTRA=ON \
-DWITH_MKL=OFF
Expand Down