summaryrefslogtreecommitdiff
path: root/src/bin/elementary/meson.build
diff options
context:
space:
mode:
authorSubhransu Mohanty <smohantty@gmail.com>2020-01-21 02:06:17 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-20 12:32:31 +0200
commitf9a108c51a6a7f013df8dfd8c7735e1fa6d7dacc (patch)
tree159d89c222371e364b2d420022a10d86dc35f378 /src/bin/elementary/meson.build
parenta227b83f41adc3d8ca5f27c36f4e708d2f508c35 (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.build9
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
240asan_option =[]
241if get_option('b_sanitize') == 'address'
242 asan_option= 'ASAN_OPTIONS=detect_leaks=0'
243endif
244
240if meson.is_cross_build() 245if meson.is_cross_build()
241 elementary_codegen_exe = [find_program('elementary_codegen', native: true)] 246 elementary_codegen_exe = [find_program('elementary_codegen', native: true)]
242else 247else
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()]
245endif 250endif
246 251
247elm_prefs_cc_src = [ 252elm_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]
268else 273else
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()]
271endif 276endif
272 277
273if sys_windows == false 278if sys_windows == false