X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Futil%2Fmeson.build;h=e30029063c0e8d81914e1c1dd47defd92d4ea788;hp=77e3973c1a085c5e718adee39a47d771eb9512b6;hb=8f573bdaaa7c41b19edf99e891665378b76d8fd4;hpb=1351ee03352b12690233a73e160f92da2edecf16 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(