Fix UBSan report in LZ4 library

This commit is contained in:
Alexey Milovidov 2020-05-03 04:37:30 +03:00
parent abe40e2127
commit a1f55729be

View File

@ -12,5 +12,6 @@ add_library (lz4
${LIBRARY_DIR}/lz4hc.h)
target_compile_definitions(lz4 PUBLIC LZ4_DISABLE_DEPRECATE_WARNINGS=1)
target_compile_options(lz4 PRIVATE -fno-sanitize=undefined)
target_include_directories(lz4 PUBLIC ${LIBRARY_DIR})