[vala/wip/meson] meson: Pass CC to tests



commit d42de3bcadd1102746f352719c15490623dcc9a3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Feb 11 10:13:03 2019 +0100

    meson: Pass CC to tests

 tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index 69a0ab3a8..fa9827e4a 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -694,6 +694,7 @@ vala_flags = [
        '--pkg', 'gio-2.0',
        '--disable-warnings',
        '--main', 'main', '--save-temps',
+       '--cc', cc.cmd_array()[-1],
        '-X', '-g',
        '-X', '-O0',
        '-X', '-pipe',
@@ -701,7 +702,6 @@ vala_flags = [
        '-X', '-DGETTEXT_PACKAGE="valac"',
 ]
 
-cc = meson.get_compiler('c')
 if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
   test_cflags = [
        '-Werror=init-self',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]