summaryrefslogtreecommitdiff
path: root/boost-build.jam
diff options
context:
space:
mode:
Diffstat (limited to 'boost-build.jam')
-rw-r--r--boost-build.jam18
1 files changed, 17 insertions, 1 deletions
diff --git a/boost-build.jam b/boost-build.jam
index 0a2b927770..75542e4d71 100644
--- a/boost-build.jam
+++ b/boost-build.jam
@@ -1,2 +1,18 @@
BOOST_ROOT = $(.boost-build-file:D) ;
-boost-build tools/build ;
+if --v2 in $(ARGV)
+{
+ if $(JAM_VERSION:J="") < 030103
+ {
+ ECHO "error: Boost.Jam 3.1.3 or later required" ;
+ EXIT ;
+ }
+ else
+ {
+ JAMFILE = Jamfile.v2 ;
+ boost-build tools/build/new ;
+ }
+}
+else
+{
+ boost-build tools/build ;
+}