Skip to content

Commit ead5c58

Browse files
committed
wip: try both -Os and -O2 for libstdc++
1 parent de8b36e commit ead5c58

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.docker/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM $ARCH/alpine:latest
44

55
ARG ARCH
66
ARG TARGET_ARCHS
7-
ARG TOOLCHAIN_OPTIMIZE=2
7+
ARG TOOLCHAIN_OPTIMIZE=o,2
88

99
RUN apk update
1010
RUN apk upgrade

.docker/build-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ if [[ "-$BUILD_TYPE-" == *-shared-* ]]; then
290290
fi
291291

292292
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
293-
_SYSROOT="/opt/cross/O2"
293+
_SYSROOT="/opt/cross/Os"
294294
_MARCH="${CROSS_ARCH}"
295295
if [[ -z "$CROSS_ARCH" ]]; then
296296
_MARCH="${ARCH}"

0 commit comments

Comments
 (0)