try compiling with -O3

This commit is contained in:
ading2210 2025-02-11 15:20:17 -05:00
parent 3a2ab40e75
commit 276d6b685b
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ NGHTTP2_PREFIX=$(realpath build/nghttp2-wasm)
cd build
rm -rf curl
git clone -b curl-8_11_1 --depth=1 https://github.com/curl/curl
git clone -b curl-8_12_0 --depth=1 https://github.com/curl/curl
cd curl
autoreconf -fi
@ -27,7 +27,7 @@ emconfigure ./configure --host i686-linux \
--with-mbedtls=$MBEDTLS_PREFIX --with-zlib=$ZLIB_PREFIX \
--with-brotli=$BROTLI_PREFIX --with-nghttp2=$NGHTTP2_PREFIX
emmake make -j$CORE_COUNT CFLAGS="-Oz" LIBS="-lbrotlicommon"
emmake make -j$CORE_COUNT CFLAGS="-O3" LIBS="-lbrotlicommon"
rm -rf $PREFIX
mkdir -p $PREFIX/include

View file

@ -15,7 +15,7 @@ rm -rf mbedtls
git clone -b mbedtls-3.6.2 --recursive --depth=1 https://github.com/Mbed-TLS/mbedtls mbedtls
cd mbedtls
emmake make CFLAGS="-Oz" no_test -j$CORE_COUNT
emmake make CFLAGS="-O3" no_test -j$CORE_COUNT
make DESTDIR="$PREFIX" install
rm -rf $PREFIX/bin