Skip to content

Commit

Permalink
Add -Wno-error=nan-infinity-disabled to flags
Browse files Browse the repository at this point in the history
Fixes librawspeed build
  • Loading branch information
alexcrichton committed Jun 18, 2024
1 parent eb72f1d commit 3d874e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion infra/base-images/base-clang/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ 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, thread-safety-reference-return
# vla-cxx-extension, format-truncation, thread-safety-reference-return,
# nan-infinity-disabled

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

0 comments on commit 3d874e4

Please sign in to comment.