Skip to content

Commit c12d1e7

Browse files
-O3 moment
1 parent 5b94ad4 commit c12d1e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildjdk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ "$BUILD_IOS" != "1" ]; then
3333
ln -s -f /usr/include/fontconfig $ANDROID_INCLUDE/
3434
AUTOCONF_x11arg="--x-includes=$ANDROID_INCLUDE/X11"
3535

36-
export LDFLAGS+=" -L`pwd`/dummy_libs"
36+
export LDFLAGS+=" -L`pwd`/dummy_libs -O3"
3737

3838
sudo apt -y install systemtap-sdt-dev gcc-multilib g++-multilib libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev
3939
# Create dummy libraries so we won't have to remove them in OpenJDK makefiles
@@ -45,7 +45,7 @@ else
4545
platform_args="--with-toolchain-type=clang"
4646
# --disable-precompiled-headers
4747
AUTOCONF_x11arg="--with-x=/opt/X11/include/X11 --prefix=/usr/lib"
48-
sameflags="-arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0 -DHEADLESS=1 -I$PWD/ios-missing-include -Wno-implicit-function-declaration"
48+
sameflags="-O3 -arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0 -DHEADLESS=1 -I$PWD/ios-missing-include -Wno-implicit-function-declaration"
4949
export CFLAGS+=" $sameflags"
5050
export CXXFLAGS="$sameflags"
5151

0 commit comments

Comments
 (0)