]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "Revert "meson: use c_args in generator scripts (#10289)""
authorJordan Williams <jordan@jwillikers.com>
Wed, 11 Oct 2023 18:32:49 +0000 (13:32 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Oct 2023 10:24:57 +0000 (12:24 +0200)
This reverts commit 0e3cc902faec4f18d5fa606396f602b08bc94e27.

Fixes #10288.
I have confirmed that this does now fix cross-compilation.
It appears that changes upstream in Meson, probably mesonbuild/meson#5263, have made the original MR, #10289, work now.

This needs to be tested to ensure that it doesn't break Travis CI like when it was reverted in #10361.

meson.build

index b01dd9cd73d320158561e3236cdefe69af902015..1517065db66e2910c9ea0acf2288a4fbb09f3d61 100644 (file)
@@ -483,7 +483,7 @@ if cxx_cmd != ''
         add_project_arguments(cxx.get_supported_arguments(basic_disabled_warnings), language : 'cpp')
 endif
 
-cpp = ' '.join(cc.cmd_array()) + ' -E'
+cpp = ' '.join(cc.cmd_array() + get_option('c_args')) + ' -E'
 
 has_wstringop_truncation = cc.has_argument('-Wstringop-truncation')