From 8f573bdaaa7c41b19edf99e891665378b76d8fd4 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 26 Mar 2020 14:07:39 +0100 Subject: [PATCH 1/1] util: fix process_test path Make sure we only use winepath when needed. Reviewed-by: Daniel Stone Reviewed-by: Eric Engestrom Fixes: f8f1413070a ("util/u_process: add util_get_process_exec_path") Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2690 Part-of: --- src/util/meson.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/util/meson.build b/src/util/meson.build index 77e3973c1a0..e30029063c0 100644 --- a/src/util/meson.build +++ b/src/util/meson.build @@ -285,12 +285,13 @@ if with_tests dependencies : idep_mesautil, c_args : [c_msvc_compat_args], ) - if not (host_machine.system() == 'windows') - process_test_exe_full_path = process_test_exe.full_path() - else + if (host_machine.system() == 'windows' and cc.get_id() == 'gcc') + # This conversion is only required on mingw process_test_exe_full_path = run_command( 'winepath', '-w', process_test_exe.full_path() ).stdout().strip() + else + process_test_exe_full_path = process_test_exe.full_path() endif test( -- 2.30.2