From fbc14d6dccf460df80c8b743ffc98ee99a028218 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 27 Jan 2025 16:51:46 -0400 Subject: [PATCH] Fix boost Signed-off-by: Juan Cruz Viotti --- cmake/FindBoostRegex.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/FindBoostRegex.cmake b/cmake/FindBoostRegex.cmake index 28c214fa9..50bdea040 100644 --- a/cmake/FindBoostRegex.cmake +++ b/cmake/FindBoostRegex.cmake @@ -124,6 +124,12 @@ if(NOT BoostRegex_FOUND) target_compile_definitions(boost_regex INTERFACE BOOST_REGEX_STANDALONE) + # Boost Regex doesn't pass the LLVM Undefined Behavior sanitizer otherwise + # vendor/boost-regex/include/boost/regex/v5/cpp_regex_traits.hpp:1022:60: + # runtime error: implicit conversion from type 'unsigned char' of value 128 + # (8-bit, unsigned) to type 'char' changed the value to -128 (8-bit, signed) + target_compile_options(boost_regex INTERFACE -fno-sanitize=implicit-signed-integer-truncation) + add_library(Boost::regex ALIAS boost_regex) target_include_directories(boost_regex INTERFACE