mirror of
https://github.com/webmproject/libwebp.git
synced 2025-08-29 15:22:12 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user