I basically want to do something like this
if get_option('buildtype') == 'debug'
add_project_arguments('-fsanitize=address', language : 'c')
add_project_link_arguments('-fsanitize=address', language : 'c')
endif
except using the b_sanitize=address
option since the above generates warnings. Is this possible? I have a suspicion it might not be seeing as you can't change options outside of project()
but I'm hoping there's a way to do it.