Merge pull request #10631 from ClickHouse/fix-ubsan-report-lz4

Fix UBSan report in LZ4 library
This commit is contained in:
alexey-milovidov 2020-05-03 14:45:18 +03:00 committed by GitHub
commit 410f77dfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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})