mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
cmake:bugfix SIM_ASAN cannot automatically link libasan in cmake build
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user