11version : 1.0.0
22env :
33 CFLAGS_EXTRA : " \
4- -fsanitize\
4+ -fsanitize=address \
55 "
66 # use it for ASAN and LSAN
77 SAN_OPTIONS_DEFAULT : " \
1919 :print_legend=1\
2020 :detect_leaks=1\
2121 "
22- MESON_EXTRA : " -Db_coverage=true \
23- -Doptimization=0 \
22+ MESON_EXTRA_DEBUG : " -Db_coverage=true \
23+ --optimization=0 \
24+ --debug \
2425 -Db_sanitize=address \
2526 "
2627groups :
@@ -104,7 +105,7 @@ groups:
104105 - target : build.release
105106 args :
106107 build-type : " debug"
107- meson-extra : {{ env.MESON_EXTRA }}
108+ meson-extra : {{ env.MESON_EXTRA_DEBUG }}
108109 clean : {{ args.clean }}
109110 asan-options : {{ env.SAN_OPTIONS_DEFAULT }}
110111 lsan-options : {{ env.SAN_OPTIONS_DEFAULT }}
@@ -120,7 +121,7 @@ groups:
120121 - target : build.release
121122 args :
122123 build-type : " debug"
123- meson-extra : {{ env.MESON_EXTRA }} -Ddev=enabled
124+ meson-extra : {{ env.MESON_EXTRA_DEBUG }} -Ddev=enabled
124125 clean : {{ args.clean }}
125126 asan-options : {{ env.SAN_OPTIONS_DEFAULT }}
126127 lsan-options : {{ env.SAN_OPTIONS_DEFAULT }}
@@ -231,7 +232,7 @@ groups:
231232
232233 if [[ "{{ args.debug }}" == "True" ]]; then
233234 GDB="gdb --args"
234- DEBUG_FLAGS="-g "
235+ DEBUG_FLAGS="-Og "
235236 fi
236237
237238 TEST_DIR_PATH="./tests"
@@ -261,7 +262,7 @@ groups:
261262 print_header "${test_name}"
262263 OBJECT_FILE="${TMP_DIR}/${test_name}.o"
263264
264- ${ARX} --output "${OBJECT_FILE}" --input "examples/${test_name}.arx"
265+ ${ARX} --output "${OBJECT_FILE}" --input "examples/${test_name}.arx --build-lib "
265266
266267 set -x
267268 clang++ \
@@ -381,4 +382,5 @@ groups:
381382 gdb \
382383 --args build/arx \
383384 --input `pwd`/examples/{{ args.test_name }}.arx \
385+ --build-lib \
384386 --output "/tmp/{{ args.test_name }}" {{ args.meson_extra }}
0 commit comments