Files
MINGW-packages/mingw-w64-boost/msys2-mingw-folders-bootstrap.patch
2019-10-06 12:23:19 +03:00

28 lines
785 B
Diff

--- a/tools/build/src/engine/build.sh 2015-07-07 09:46:25.813659600 +0300
+++ b/tools/build/src/engine/build.sh 2015-07-07 09:47:50.111229000 +0300
@@ -67,11 +67,24 @@
test `uname` = $*
fi
}
+
+test_msystem ()
+{
+ if [ -n $MSYSTEM ]; then
+ test "$MSYSTEM" = "$*"
+ fi
+}
# Try and guess the toolset to bootstrap the build with...
guess_toolset ()
{
if test_uname Darwin ; then B2_TOOLSET=clang
+ elif test_msystem MINGW32 ; then
+ B2_TOOLSET=gcc
+ B2_TOOLSET_ROOT=/mingw32/
+ elif test_msystem MINGW64 ; then
+ B2_TOOLSET=gcc
+ B2_TOOLSET_ROOT=/mingw64/
elif test_uname IRIX ; then B2_TOOLSET=mipspro
elif test_uname IRIX64 ; then B2_TOOLSET=mipspro
elif test_uname OSF1 ; then B2_TOOLSET=tru64cxx