Commit 7cbbdf3a authored by Christoph Reiter's avatar Christoph Reiter Committed by Tim-Philipp Müller

meson: Fix detection of glib-mkenums under MSYS2

Under MSYS2 glib-mkenums is an executable and has a .exe extension and
the path does not end with "glib-mkenums".

Make the script compare the path without the file extension instead.
parent cba2c7dd
......@@ -37,7 +37,7 @@ argn = 1
for arg in sys.argv[1:]:
argn += 1
if arg.endswith('glib-mkenums'):
if os.path.splitext(arg)[0].endswith('glib-mkenums'):
ofilename = sys.argv[argn]
headers = sys.argv[argn + 1:]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment