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:
parent
1bea54624d
commit
c42eb5b503
|
@ -24,7 +24,8 @@ if __name__== '__main__':
|
||||||
break
|
break
|
||||||
|
|
||||||
cpp = args[1]
|
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')
|
stdout = ret.stdout.decode('utf8')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue