mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
cmake:bugfix SIM_ASAN cannot automatically link libasan in cmake build
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
cd46d27489
commit
b073b3efc1
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ endif()
|
|||
|
||||
if(CONFIG_SIM_ASAN)
|
||||
add_compile_options(-fsanitize=address)
|
||||
add_link_options(-fsanitize=address)
|
||||
add_compile_options(-fsanitize-address-use-after-scope)
|
||||
add_compile_options(-fsanitize=pointer-compare)
|
||||
add_compile_options(-fsanitize=pointer-subtract)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue