Skip to content

Commit 669778a

Browse files
committed
perf: enable compiler optimizations
1 parent 20f69df commit 669778a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ WORKDIR /tmp
1515
# SIMD Coprocessor: NEON
1616
# Floating Point ABI: Hard (generates floating-point instructions with FPU-specific calling conventions)
1717
RUN if [ "${TARGETARCH}" = "arm" ] && [ "${TARGETVARIANT}" = "v7" ]; then \
18-
export CFLAGS="-march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -pipe"; \
19-
export CXXFLAGS="-march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -pipe"; \
18+
export CFLAGS="-O2 -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -pipe"; \
19+
export CXXFLAGS="-O2 -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -pipe"; \
20+
else \
21+
export CFLAGS="-O2 -pipe"; \
22+
export CXXFLAGS="-O2 -pipe"; \
2023
fi && \
2124
git clone https://github.com/VerdigrisTech/localproxy && \
2225
cd localproxy && \

0 commit comments

Comments
 (0)