perf: add -O3 and lto
This commit is contained in:
parent
95b6822a44
commit
3f75cded58
1 changed files with 6 additions and 4 deletions
|
@ -23,12 +23,14 @@ WORKDIR /build/src
|
|||
RUN bash get_source.sh
|
||||
|
||||
ENV CC=/usr/bin/gcc CXX=/usr/bin/g++
|
||||
# TODO: add as args to configure
|
||||
# CFLAGS="-O3 -flto -fwhole-program-vtables" \
|
||||
# LDFLAGS="-Wl,-O1"
|
||||
RUN bash configure \
|
||||
--with-boot-jdk=/usr/lib/jvm/java-21-openjdk-amd64 \
|
||||
--with-openssl=system
|
||||
--with-openssl=system \
|
||||
--with-extra-cflags="-O3 -flto=auto -fuse-linker-plugin" \
|
||||
--with-extra-cxxflags="-O3 -flto=auto -fuse-linker-plugin" \
|
||||
--with-extra-ldflags="-Wl,-O1" \
|
||||
--with-native-debug-symbols=none \
|
||||
--enable-jvm-feature-link-time-opt
|
||||
RUN make all JOBS=$(nproc)
|
||||
|
||||
WORKDIR /build/src/build/linux-x86_64-server-release/images
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue