]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: don't use run
authorRosen Penev <rosenp@gmail.com>
Fri, 29 Apr 2022 23:56:54 +0000 (16:56 -0700)
committerRosen Penev <rosenp@gmail.com>
Sat, 30 Apr 2022 01:05:19 +0000 (18:05 -0700)
Fixes cross compilation. run is not needed anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
meson.build

index c91723224bd4ecf7cd0eb774a40f62ca03ddf2c6..0881a4dee94b0a5700453603587cbacfeea81658 100644 (file)
@@ -578,8 +578,7 @@ int main(void) {
   return tzname ? 0 : 1;
 }
 '''.format(have ? 1 : 0)
-result = cc.run(code, name : 'using tzname[]')
-have = result.compiled() and result.returncode() == 0
+have = cc.compiles(code, name : 'using tzname[]')
 conf.set('HAVE_TZNAME', have ? 1 : false)
 
 socket_libs = []
@@ -642,8 +641,7 @@ int main(void) {
     return (*__progname != 0);
 }
 '''
-result = cc.run(code, name : 'using __progname')
-have = result.compiled() and result.returncode() == 0
+have = cc.compiles(code, name : 'using __progname')
 conf.set('HAVE___PROGNAME', have ? 1 : false)
 
 build_plymouth_support = get_option('build-plymouth-support')