Add -fbounds-safety to webpdecodeutils

webpdecodeutils is a subset of webputils, so we add -fbounds-safety to
it to ensure that the files are being compiled the same way between
modules.

Bug: webp:432511821
Change-Id: I5c01a87601a13c331b628c605238e645d1efa77f
This commit is contained in:
mxms
2025-08-20 19:45:01 +00:00
committed by Max Shavrick
parent 69c8056c7a
commit 7ee251d3fd

View File

@@ -416,6 +416,7 @@ if(WEBP_ENABLE_FBOUNDS_SAFETY)
# Enable -fbounds-safety only for webputils for now.
add_definitions(-DWEBP_SUPPORT_FBOUNDS_SAFETY=1)
target_compile_options(webputils PRIVATE -fbounds-safety)
target_compile_options(webputilsdecode PRIVATE -fbounds-safety)
endif()
target_link_libraries(webp sharpyuv)