Skip to content

Commit 036aa2b

Browse files
dunglasclaude
andcommitted
fix: work around GCC 12 false positive when building watcher on i386
GCC 12 on Debian Bookworm i386 emits a spurious -Werror=use-after-free in libstdc++ basic_string.h when compiling e-dant/watcher, causing Docker builds to fail. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c99b6db commit 036aa2b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ RUN --mount=type=secret,id=github-token \
9393
sed 's/"//g' | \
9494
xargs curl -L | \
9595
tar xz --strip-components 1 && \
96-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \
96+
# -Wno-error=use-after-free: GCC 12 on Bookworm i386 emits a spurious warning in libstdc++ basic_string.h
97+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wno-error=use-after-free" && \
9798
cmake --build build && \
9899
cmake --install build && \
99100
ldconfig

0 commit comments

Comments
 (0)