Add -O2 in armv7 Docker build following bug fix

Changelog-None
This commit is contained in:
Raimo33 2026-02-18 16:53:59 +01:00 committed by ShahanaFarooqui
parent 823a575d9a
commit aa3f2469e2

View file

@ -91,8 +91,7 @@ ARG target_arch=arm-linux-gnueabihf
ARG target_arch_gcc=arm-linux-gnueabihf
ARG target_arch_dpkg=armhf
ARG target_arch_rust=armv7-unknown-linux-gnueabihf
#TODO: bug with -O2 in armv7, see https://github.com/ElementsProject/lightning/issues/8501
ARG COPTFLAGS="-O1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
ARG COPTFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
FROM base-builder-${TARGETOS}-${TARGETARCH} AS builder