Skip to content

Commit

Permalink
Try flto on LLVM 17
Browse files Browse the repository at this point in the history
  • Loading branch information
vincejv committed Nov 8, 2024
1 parent 0ebe522 commit 8214e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ARG GEOIP2_VERSION
ARG NGINX_USER_UID
ARG NGINX_GROUP_GID
ARG CONFIG
ARG CFLAGS_OPT="-O3 -pipe -fomit-frame-pointer -march=sandybridge"
ARG CFLAGS_OPT="-O3 -pipe -flto -fomit-frame-pointer -march=sandybridge"

ENV VERSION_OPENSSL=openssl-3.4.0 \
SHA256_OPENSSL=e15dda82fe2fe8139dc2ac21a36d4ca01d5313c75f99f46c4e8a27709b7294bf \
Expand All @@ -116,8 +116,8 @@ ENV VERSION_OPENSSL=openssl-3.4.0 \
CXXFLAGS="$CFLAGS_OPT" \
CPPFLAGS="$CFLAGS_OPT" \
LDFLAGS="-O3 -Wl,--strip-all -Wl,--as-needed" \
CC=clang-19 \
CXX=clang++-19
CC=clang-17 \
CXX=clang++-17

# Development environment
RUN \
Expand Down Expand Up @@ -151,7 +151,7 @@ RUN \
libreadline-dev && \
# download install clang and llvm
wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && ./llvm.sh 19
chmod +x llvm.sh && ./llvm.sh 17

WORKDIR /usr/src/

Expand Down

0 comments on commit 8214e73

Please sign in to comment.