File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,16 @@ if [ "$MINGW" == "32" ]; then
71
71
export CXX=i686-w64-mingw32-g++
72
72
BIN_SUFFIX=.exe
73
73
BIN_WRAPPER=/usr/lib/wine/wine
74
- export WINEPATH=" $( dirname $( $CXX --print-file-name=libstdc++.a) ) ;/usr/i686-w64-mingw32/lib"
74
+ MINGW_SYSROOT=" /usr/i686-w64-mingw32"
75
+ export WINEPATH=" $( dirname $( $CXX --print-file-name=libstdc++.a) ) ;$MINGW_SYSROOT /lib"
75
76
elif [ " $MINGW " == " 64" ]; then
76
77
# Make sure the correct compiler will be used.
77
78
export CC=x86_64-w64-mingw32-gcc
78
79
export CXX=x86_64-w64-mingw32-g++
79
80
BIN_SUFFIX=.exe
80
81
BIN_WRAPPER=/usr/lib/wine/wine64
81
- export WINEPATH=" $( dirname $( $CXX --print-file-name=libstdc++.a) ) ;/usr/x86_64-w64-mingw32/lib"
82
+ MINGW_SYSROOT=" /usr/x86_64-w64-mingw32"
83
+ export WINEPATH=" $( dirname $( $CXX --print-file-name=libstdc++.a) ) ;$MINGW_SYSROOT /lib"
82
84
fi
83
85
84
86
PKG_CONFIG_PATH=
@@ -138,7 +140,7 @@ if [ "$CURRENT_OS" = "osx" ] ; then
138
140
CMAKE_OPTIONS=" $CMAKE_OPTIONS -DCMAKE_FIND_FRAMEWORK=LAST"
139
141
fi
140
142
if [ -n " $MINGW " ]; then
141
- CMAKE_OPTIONS=" $CMAKE_OPTIONS -DCMAKE_SYSTEM_NAME=Windows"
143
+ CMAKE_OPTIONS=" $CMAKE_OPTIONS -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_FIND_ROOT_PATH= $MINGW_SYSROOT "
142
144
fi
143
145
if [ " $CLANG_TIDY " = " 1" ]; then
144
146
CMAKE_OPTIONS=" $CMAKE_OPTIONS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
You can’t perform that action at this time.
0 commit comments