From f6d783ac3d145f3f3ffc2023d4ad90f76cf7fe34 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 4 Oct 2018 04:52:44 +0900 Subject: meson: use same compilers to build fuzzers --- test/fuzz/meson.build | 4 +++- tools/meson-build.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/fuzz/meson.build b/test/fuzz/meson.build index 56d0f69660..b4aadaab2e 100644 --- a/test/fuzz/meson.build +++ b/test/fuzz/meson.build @@ -7,7 +7,9 @@ sanitize_address = custom_target( meson.source_root(), '@OUTPUT@', 'fuzzers', - '-Db_lundef=false -Db_sanitize=address']) + '-Db_lundef=false -Db_sanitize=address', + ' '.join(cc.cmd_array()), + ' '.join(meson.get_compiler('cpp').cmd_array())]) sanitizers = [['address', sanitize_address]] diff --git a/tools/meson-build.sh b/tools/meson-build.sh index 317dad932d..dea554177d 100755 --- a/tools/meson-build.sh +++ b/tools/meson-build.sh @@ -5,8 +5,10 @@ src="$1" dst="$2" target="$3" options="$4" +CC="$5" +CXX="$6" -[ -f "$dst/ninja.build" ] || meson "$src" "$dst" $options +[ -f "$dst/ninja.build" ] || CC="$CC" CXX="$CXX" meson "$src" "$dst" $options # Locate ninja binary, on CentOS 7 it is called ninja-build, so # use that name if available. -- cgit v1.2.1