Skip to content

Commit

Permalink
Fixed unary operator error
Browse files Browse the repository at this point in the history
  • Loading branch information
watbulb committed Aug 24, 2016
1 parent 7970628 commit 942220d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ elif [ "$(type -p apt-get)" = "" ]; then
fi
fi

if [ $version -eq 1 ] && [ ! -z "$cv" ]; then
if [ "$version" = "1" ] && [ ! -z "$cv" ]; then
BUILD_JPEG=ON
ENABLE_NEON=OFF
CMAKE_C_FLAGS="-O3 -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -pipe"
Expand All @@ -355,7 +355,7 @@ if [ $version -eq 1 ] && [ ! -z "$cv" ]; then
WITH_TBB=OFF
fi

elif [ $version -eq 2 ] && [ ! -z "$cv" ]; then
elif [ "$version" = "2" ] && [ ! -z "$cv" ]; then
BUILD_JPEG=ON
ENABLE_NEON=ON
CMAKE_C_FLAGS="-O3 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations -ftree-vectorize -pipe"
Expand Down Expand Up @@ -386,7 +386,7 @@ elif [ $version -eq 2 ] && [ ! -z "$cv" ]; then
TBB_CXXFLAGS=$TBB_CXXFLAGS
fi

elif [ $version -eq 3 ] && [ ! -z "$cv" ]; then
elif [ "$version" = "3" ] && [ ! -z "$cv" ]; then
BUILD_JPEG=ON
ENABLE_NEON=ON
CMAKE_C_FLAGS="-O3 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe"
Expand Down Expand Up @@ -417,7 +417,7 @@ elif [ $version -eq 3 ] && [ ! -z "$cv" ]; then
TBB_CXXFLAGS=$TBB_CXXFLAGS
fi

elif [ $version -eq 4 ] && [ ! -z "$cv" ]; then
elif [ "$version" = "4" ] && [ ! -z "$cv" ]; then
BUILD_JPEG=ON
ENABLE_NEON=ON
CMAKE_C_FLAGS="-O3 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe"
Expand Down Expand Up @@ -448,7 +448,7 @@ elif [ $version -eq 4 ] && [ ! -z "$cv" ]; then
TBB_CXXFLAGS=$TBB_CXXFLAGS
fi

elif [ $version -eq 5 ] && [ ! -z "$cv" ]; then
elif [ "$version" = "5" ] && [ ! -z "$cv" ]; then
WITH_TBB=OFF
BUILD_JPEG=ON
ENABLE_NEON=OFF
Expand Down

0 comments on commit 942220d

Please sign in to comment.