Add undefined behaviour sanitizer option

replace/486953e07d8a89154a8a0796302be690d8c88839
Niccolò Izzo 2021-02-17 09:52:36 +01:00
rodzic c752601463
commit 9aefde7fc7
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -280,6 +280,11 @@ if get_option('asan')
linux_c_args += '-fsanitize=address'
linux_l_args += '-fsanitize=address'
endif
# Add Undefined Behaviour Sanitizer if required
if get_option('ubsan')
linux_c_args += '-fsanitize=undefined'
linux_l_args += '-fsanitize=undefined'
endif
foreach k, v : linux_def
if v == ''

Wyświetl plik

@ -1,2 +1,3 @@
option('asan', type : 'boolean', value : false, description : 'Compile the software with AddressSanitizer')
option('ubsan', type : 'boolean', value : false, description : 'Compile the software with Undefined Behaviour Sanitizer')
option('test', type: 'string', description: 'Replace the main OpenRTX source file with a specialized test')