From c6462413913cd0a0f68ad06b8d43c45a14acd94e Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 17 Jul 2017 15:05:07 -0700 Subject: [PATCH] README.wasm: normalize cmake command lines + enable NEON for armv7 Change-Id: If914f3973391271a1817e7ff16541f3272b2ad88 --- README.wasm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.wasm b/README.wasm index f5a44a11..63b97a32 100644 --- a/README.wasm +++ b/README.wasm @@ -36,14 +36,14 @@ armv7: ------ $ gcc_arm=/opt/gcc-arm; target=arm-linux-gnueabihf - $ cmake -DWEBP_BUILD_DWEBP=1 -DCMAKE_C_COMPILER=clang -DWEBP_ENABLE_WASM=1 \ - -DCMAKE_C_FLAGS="--target=$target --gcc-toolchain=$gcc_arm --sysroot=$gcc_arm/$target/libc" \ + $ cmake .. -DWEBP_BUILD_DWEBP=1 -DCMAKE_C_COMPILER=clang -DWEBP_ENABLE_WASM=1 \ + -DCMAKE_C_FLAGS="--target=$target --gcc-toolchain=$gcc_arm --sysroot=$gcc_arm/$target/libc -march=armv7-a -mfpu=neon" \ -DCMAKE_PREFIX_PATH=$gcc_arm/$target/libc/usr aarch64 / arm64: ---------------- $ gcc_arm=/opt/gcc-aarch64; target=aarch64-linux-gnu - $ cmake .. -DWEBP_BUILD_DWEBP=ON -DCMAKE_C_COMPILER=clang \ + $ cmake .. -DWEBP_BUILD_DWEBP=1 -DCMAKE_C_COMPILER=clang -DWEBP_ENABLE_WASM=1 \ -DCMAKE_C_FLAGS="--target=$target --gcc-toolchain=$gcc_arm --sysroot=$gcc_arm/$target/libc" \ -DCMAKE_PREFIX_PATH=$gcc_arm/$target/libc/usr