From: subhransu mohanty Date: Fri, 7 Jun 2019 01:58:46 +0000 (+0900) Subject: meson/build: meson has builtin option 'b_sanitize' to run asan msan and tsan X-Git-Tag: submit/tizen/20190619.051039~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a253536ba7f34aaf2a97992e70f01139665ca33;p=platform%2Fcore%2Fuifw%2Flottie-player.git meson/build: meson has builtin option 'b_sanitize' to run asan msan and tsan --- diff --git a/meson.build b/meson.build index 50d33ce..62055d9 100644 --- a/meson.build +++ b/meson.build @@ -10,21 +10,6 @@ compiler_flags = ['-std=c++14', '-Os', '-Wall', '-Werror', '-Wextra', '-fno-exce '-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'] diff --git a/meson_options.txt b/meson_options.txt index f1463c8..8da05f0 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -13,20 +13,3 @@ option('text', 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')