mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 23:15:15 +00:00
cmake: add_compile_options recognizes parameter exception
add_compile_options(--param asan-globals=1) is recognized as --param-lasan-globals=1, which causes compilation exception: Signed-off-by: W-M-R <Mike_0528@163.com>
This commit is contained in:
parent
dcae65f504
commit
5febd80efe
5 changed files with 12 additions and 12 deletions
|
|
@ -138,15 +138,15 @@ if(CONFIG_MM_KASAN_ALL)
|
|||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_GLOBAL)
|
||||
add_compile_options(--param asan-globals=1)
|
||||
add_compile_options(--param=asan-globals=1)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_READS_CHECK)
|
||||
add_compile_options(--param asan-instrument-reads=0)
|
||||
add_compile_options(--param=asan-instrument-reads=0)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_WRITES_CHECK)
|
||||
add_compile_options(--param asan-instrument-writes=0)
|
||||
add_compile_options(--param=asan-instrument-writes=0)
|
||||
endif()
|
||||
|
||||
# Instrumentation options
|
||||
|
|
|
|||
|
|
@ -150,15 +150,15 @@ if(CONFIG_MM_KASAN_ALL)
|
|||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_GLOBAL)
|
||||
add_compile_options(--param asan-globals=1)
|
||||
add_compile_options(--param=asan-globals=1)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_READS_CHECK)
|
||||
add_compile_options(--param asan-instrument-reads=0)
|
||||
add_compile_options(--param=asan-instrument-reads=0)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_WRITES_CHECK)
|
||||
add_compile_options(--param asan-instrument-writes=0)
|
||||
add_compile_options(--param=asan-instrument-writes=0)
|
||||
endif()
|
||||
|
||||
# Instrumentation options
|
||||
|
|
|
|||
|
|
@ -109,15 +109,15 @@ if(CONFIG_MM_KASAN_ALL)
|
|||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_GLOBAL)
|
||||
add_compile_options(--param asan-globals=1)
|
||||
add_compile_options(--param=asan-globals=1)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_READS_CHECK)
|
||||
add_compile_options(--param asan-instrument-reads=0)
|
||||
add_compile_options(--param=asan-instrument-reads=0)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_WRITES_CHECK)
|
||||
add_compile_options(--param asan-instrument-writes=0)
|
||||
add_compile_options(--param=asan-instrument-writes=0)
|
||||
endif()
|
||||
|
||||
# Instrumentation options
|
||||
|
|
|
|||
|
|
@ -345,11 +345,11 @@ if(CONFIG_MM_KASAN_ALL)
|
|||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_READS_CHECK)
|
||||
add_compile_options(--param asan-instrument-reads=0)
|
||||
add_compile_options(--param=asan-instrument-reads=0)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_DISABLE_WRITES_CHECK)
|
||||
add_compile_options(--param asan-instrument-writes=0)
|
||||
add_compile_options(--param=asan-instrument-writes=0)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MM_UBSAN_ALL)
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ elseif(CONFIG_MM_KASAN_ALL)
|
|||
endif()
|
||||
|
||||
if(CONFIG_MM_KASAN_GLOBAL)
|
||||
add_compile_options(--param asan-globals=1)
|
||||
add_compile_options(--param=asan-globals=1)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SIM_UBSAN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue