Skip to content

Commit

Permalink
Add -Wno-error=thread-safety-reference-return to flags
Browse files Browse the repository at this point in the history
Fixes envoy build
  • Loading branch information
alexcrichton committed Jun 18, 2024
1 parent 7ea0e85 commit eb72f1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/base-images/base-clang/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ENV CCC "clang++"
# See https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#potentially-breaking-changes
# Same for deprecated-declarations, int-conversion,
# incompatible-function-pointer-types, enum-constexpr-conversion,
# vla-cxx-extension, format-truncation
# vla-cxx-extension, format-truncation, thread-safety-reference-return

ENV CFLAGS -O1 \
-fno-omit-frame-pointer \
Expand All @@ -74,6 +74,7 @@ ENV CFLAGS -O1 \
-Wno-error=implicit-int \
-Wno-error=vla-cxx-extension \
-Wno-error=format-truncation \
-Wno-error=thread-safety-reference-return \
-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
ENV CXXFLAGS_EXTRA "-stdlib=libc++"
ENV CXXFLAGS "$CFLAGS $CXXFLAGS_EXTRA"

0 comments on commit eb72f1d

Please sign in to comment.