diff options
author | Subhransu Mohanty <smohantty@gmail.com> | 2020-01-21 02:06:17 +0000 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2020-05-20 12:32:31 +0200 |
commit | f9a108c51a6a7f013df8dfd8c7735e1fa6d7dacc (patch) | |
tree | 159d89c222371e364b2d420022a10d86dc35f378 /src/bin/elementary/meson.build | |
parent | a227b83f41adc3d8ca5f27c36f4e708d2f508c35 (diff) |
meson: Changed meson build to support address sanitizer build
As we run some intermediate binary like edje_cc during efl build , and due to
those binary has some memory leaks the address sanitizer build of efl fails.
This Patch runs those binary with 'ASAN_OPTIONS=detect_leak=false' to disable the
memory leak check for those binaries.
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11137
Diffstat (limited to '')
-rw-r--r-- | src/bin/elementary/meson.build | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/elementary/meson.build b/src/bin/elementary/meson.build index 0f8d79322d..ef5d3ded60 100644 --- a/src/bin/elementary/meson.build +++ b/src/bin/elementary/meson.build | |||
@@ -237,11 +237,16 @@ elementary_codegen = executable('elementary_codegen', | |||
237 | link_args: link_args | 237 | link_args: link_args |
238 | ) | 238 | ) |
239 | 239 | ||
240 | asan_option =[] | ||
241 | if get_option('b_sanitize') == 'address' | ||
242 | asan_option= 'ASAN_OPTIONS=detect_leaks=0' | ||
243 | endif | ||
244 | |||
240 | if meson.is_cross_build() | 245 | if meson.is_cross_build() |
241 | elementary_codegen_exe = [find_program('elementary_codegen', native: true)] | 246 | elementary_codegen_exe = [find_program('elementary_codegen', native: true)] |
242 | else | 247 | else |
243 | env = find_program('env', native: true) | 248 | env = find_program('env', native: true) |
244 | elementary_codegen_exe = [env, 'EFL_RUN_IN_TREE=1', elementary_codegen.full_path()] | 249 | elementary_codegen_exe = [env, asan_option, 'EFL_RUN_IN_TREE=1', elementary_codegen.full_path()] |
245 | endif | 250 | endif |
246 | 251 | ||
247 | elm_prefs_cc_src = [ | 252 | elm_prefs_cc_src = [ |
@@ -267,7 +272,7 @@ if meson.is_cross_build() | |||
267 | elm_prefs_cc_exe = [_elm_prefs_cc] | 272 | elm_prefs_cc_exe = [_elm_prefs_cc] |
268 | else | 273 | else |
269 | env = find_program('env', native: true) | 274 | env = find_program('env', native: true) |
270 | elm_prefs_cc_exe = [env, 'EFL_RUN_IN_TREE=1', elm_prefs_cc.full_path()] | 275 | elm_prefs_cc_exe = [env, asan_option, 'EFL_RUN_IN_TREE=1', elm_prefs_cc.full_path()] |
271 | endif | 276 | endif |
272 | 277 | ||
273 | if sys_windows == false | 278 | if sys_windows == false |