]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use c_args in generator scripts (#10289)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 8 Oct 2018 16:37:06 +0000 (01:37 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 Oct 2018 16:37:06 +0000 (18:37 +0200)
May be useful in some cases.

meson.build

index 554e67e5dd0c1f571eedec9d9ad0c5019f8f0d63..5e653b8b6f78d58ff0754963a3f6fc656f5cfe0d 100644 (file)
@@ -392,7 +392,7 @@ if cc.compiles('''
         add_project_arguments('-Werror=shadow', language : 'c')
 endif
 
-cpp = ' '.join(cc.cmd_array()) + ' -E'
+cpp = ' '.join(cc.cmd_array() + get_option('c_args')) + ' -E'
 
 #####################################################################
 # compilation result tests