Skip to content

Commit

Permalink
Added O3 and fast math flags to release
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodAxe committed Aug 17, 2012
1 parent 0f2259e commit b0838fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BuildOpenCV.sh
Expand Up @@ -52,6 +52,9 @@ cmake -GXcode -DCMAKE_TOOLCHAIN_FILE=$SRC/ios/cmake/Toolchains/Toolchain-iPhoneO
-DBUILD_TESTS=NO \ -DBUILD_TESTS=NO \
-DBUILD_NEW_PYTHON_SUPPORT=NO \ -DBUILD_NEW_PYTHON_SUPPORT=NO \
-DBUILD_PERF_TESTS=NO \ -DBUILD_PERF_TESTS=NO \
-DBUILD_PERF_TESTS=NO \
-DCMAKE_C_FLAGS_RELEASE="-O3 -ffast-math" \
-DCMAKE_CXX_FLAGS_RELEASE="-O3 -ffast-math" \
-DCMAKE_XCODE_ATTRIBUTE_GCC_VERSION="com.apple.compilers.llvmgcc42" $SRC -DCMAKE_XCODE_ATTRIBUTE_GCC_VERSION="com.apple.compilers.llvmgcc42" $SRC


xcodebuild -sdk iphoneos -configuration Release -target ALL_BUILD xcodebuild -sdk iphoneos -configuration Release -target ALL_BUILD
Expand Down

0 comments on commit b0838fb

Please sign in to comment.