clang #2

Closed
DarkCat09 wants to merge 2 commits from dev/dc09 into main
Showing only changes of commit 8b0c793c98 - Show all commits

View file

@ -31,12 +31,12 @@ ENV CC=/usr/bin/clang CXX=/usr/bin/clang++ LD=/usr/bin/lld
# TODO: add as args to configure
# CFLAGS="-O3 -flto -fwhole-program-vtables" \
# LDFLAGS="-Wl,-O1"
ENV CFLAGS="-Wno-error=nontrivial-memcall"
ENV CFLAGS="-Wno-error=nontrivial-memcall -fno-lto -O1"
RUN bash configure \
--with-boot-jdk=/build/bootjdk \
--with-openssl=system \
--with-toolchain-type=clang \
--enable-jvm-feature-link-time-opt \
# --enable-jvm-feature-link-time-opt \
--with-extra-cflags="$CFLAGS" \
--with-extra-cxxflags="$CFLAGS"
RUN make all JOBS=$(nproc)