fix running tests in wine

master
Daniel Kolesa 2021-04-15 21:20:59 +02:00
parent 37ad7e7589
commit a1b5575a9a
2 changed files with 5 additions and 0 deletions

View File

@ -139,6 +139,9 @@ cd build
args=""
if [ -n "${cross}" ]; then
if [ "${meson_system}" = "windows" ]; then
# avoid having to look the dlls for these up
export CXXFLAGS+=" -static-libgcc -static-libstdc++"
# quiet wine exe wrapper
cat << EOF > meson-exewrapper
#!/bin/sh
export WINEDEBUG=-all

View File

@ -16,6 +16,8 @@ test_runner = executable('runner',
penv = environment()
penv.append('PATH', join_paths(build_root, 'src'))
# when running tests for crossbuilds in wine, this is used instead
penv.append('WINEPATH', join_paths(build_root, 'src'))
foreach tcase: lang_tests
test(tcase[0],