mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
port/posix-h4: add asan build on debug
This commit is contained in:
parent
588a837a08
commit
e2475b4c6e
@ -17,6 +17,14 @@ elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
|
||||
# using Visual Studio C++
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
add_compile_options(
|
||||
-fsanitize=undefined -fsanitize=address
|
||||
)
|
||||
add_link_options(
|
||||
-fsanitize=undefined -fsanitize=address
|
||||
)
|
||||
endif()
|
||||
|
||||
# to generate .h from .gatt files
|
||||
find_package (Python REQUIRED COMPONENTS Interpreter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user