mirror of
https://github.com/BlackMATov/enum.hpp.git
synced 2025-12-16 14:09:03 +07:00
new ci scripts and presets
This commit is contained in:
11
cmake/EnableUBSan.cmake
Normal file
11
cmake/EnableUBSan.cmake
Normal file
@@ -0,0 +1,11 @@
|
||||
# https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
|
||||
|
||||
add_library(enable_ubsan INTERFACE)
|
||||
|
||||
target_compile_options(enable_ubsan INTERFACE
|
||||
-fsanitize=undefined
|
||||
-fno-omit-frame-pointer)
|
||||
|
||||
target_link_options(enable_ubsan INTERFACE
|
||||
-fsanitize=undefined
|
||||
-fno-omit-frame-pointer)
|
||||
Reference in New Issue
Block a user