'-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
'-Wnon-virtual-dtor', '-Woverloaded-virtual', '-Wno-unused-parameter', '-fvisibility=hidden']
-if get_option('asan') == true
- compiler_flags += ['-fsanitize=address']
- add_global_link_arguments('-fsanitize=address', language: 'cpp')
-endif
-
-if get_option('msan') == true
- compiler_flags += ['-fsanitize=memory']
- add_global_link_arguments('-fsanitize=memory', language: 'cpp')
-endif
-
-if get_option('tsan') == true
- compiler_flags += ['-fsanitize=thread']
- add_global_link_arguments('-fsanitize=thread', language: 'cpp')
-endif
-
if (build_machine.system() == 'linux')
compiler_flags += ['-pthread']
value: false,
description: 'Enable text module')
-
-option('asan',
- type: 'boolean',
- value: false,
- description: 'Enable address sanitizer')
-
-
-option('msan',
- type: 'boolean',
- value: false,
- description: 'Enable memory sanitizer')
-
-
-option('tsan',
- type: 'boolean',
- value: false,
- description: 'Enable thread sanitizer')