Skip to content

Commit

Permalink
Fix boost
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jan 27, 2025
1 parent 3bb20e5 commit fbc14d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/FindBoostRegex.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbc14d6

Please sign in to comment.