meson/build: meson has builtin option 'b_sanitize' to run asan msan and tsan
authorsubhransu mohanty <sub.mohanty@samsung.com>
Fri, 7 Jun 2019 01:58:46 +0000 (10:58 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 19 Jun 2019 04:35:41 +0000 (13:35 +0900)
meson.build
meson_options.txt

index 50d33ce643511709c3e429df4d8ffe070a33a200..62055d9896763c68f5a31a0810966ce24a40a4e7 100644 (file)
@@ -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']
index f1463c84a837d28fe2855dedaf0d6939d27ab7ef..8da05f09a79761df6261300c9dce6a2a71918bff 100644 (file)
@@ -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')