meson: use c_args in generator scripts (#10289)

May be useful in some cases.
This commit is contained in:
Yu Watanabe 2018-10-09 01:37:06 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 1099ceebce
commit 56f56d5ad8

View file

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