Fix the build issue on meson when -g option is added to c_args

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/335
This commit is contained in:
Akira TAGOH 2022-10-27 12:32:07 +09:00
parent 1bea54624d
commit c42eb5b503
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ if __name__== '__main__':
break
cpp = args[1]
ret = subprocess.run(cpp + host_cargs + [args[0].input], stdout=subprocess.PIPE, check=True)
cpp_args = [i for i in host_cargs + [args[0].input] if not i.startswith('-g')]
ret = subprocess.run(cpp + cpp_args, stdout=subprocess.PIPE, check=True)
stdout = ret.stdout.decode('utf8')