1
1
@ ECHO OFF
2
2
3
+ SETLOCAL
4
+
3
5
REM Copyright (C) 2009 Vladimir Prus
4
6
REM
5
7
REM Distributed under the Boost Software License, Version 1.0.
@@ -34,12 +36,24 @@ goto :bjam_failure
34
36
REM Ideally, we should obtain the toolset that build.bat has
35
37
REM guessed. However, it uses setlocal at the start and does not
36
38
REM export BOOST_JAM_TOOLSET, and I don't know how to do that
37
- REM properly. Default to msvc for now.
38
- set toolset = msvc
39
+ REM properly. Default to msvc if not specified.
40
+
41
+ SET TOOLSET = msvc
42
+
43
+ IF " %1 " == " gcc" SET TOOLSET = gcc
44
+
45
+ IF " %1 " == " vc71" SET TOOLSET = msvc : 7.1
46
+ IF " %1 " == " vc8" SET TOOLSET = msvc : 8.0
47
+ IF " %1 " == " vc9" SET TOOLSET = msvc : 9.0
48
+ IF " %1 " == " vc10" SET TOOLSET = msvc : 10.0
49
+ IF " %1 " == " vc11" SET TOOLSET = msvc : 11.0
50
+ IF " %1 " == " vc12" SET TOOLSET = msvc : 12.0
51
+ IF " %1 " == " vc14" SET TOOLSET = msvc : 14.0
52
+ IF " %1 " == " vc141" SET TOOLSET = msvc : 14.1
39
53
40
54
ECHO import option ; > project-config.jam
41
55
ECHO . >> project-config.jam
42
- ECHO using %toolset % ; >> project-config.jam
56
+ ECHO using %TOOLSET % ; >> project-config.jam
43
57
ECHO . >> project-config.jam
44
58
ECHO option.set keep-going : false ; >> project-config.jam
45
59
ECHO . >> project-config.jam
@@ -60,6 +74,7 @@ ECHO http://boost.org/more/getting_started/windows.html
60
74
ECHO .
61
75
ECHO - Boost.Build documentation:
62
76
ECHO http://www.boost.org/build/doc/html/index.html
77
+ ECHO .
63
78
64
79
goto :end
65
80
69
84
ECHO Failed to build Boost.Build engine.
70
85
ECHO Please consult bootstrap.log for further diagnostics.
71
86
ECHO .
72
- ECHO You can try to obtain a prebuilt binary from
73
- ECHO .
74
- ECHO http://sf.net/project/showfiles.php?group_id=7586^ &package_id=72941
75
- ECHO .
76
- ECHO Also, you can file an issue at http://svn.boost.org
77
- ECHO Please attach bootstrap.log in that case.
78
87
79
- goto :end
88
+ REM Set an error code to allow `bootstrap && b2`
89
+ cmd /c exit /b 1 > nul
80
90
81
91
:end
0 commit comments