From 0d18db3822c08083cd95b19a8b5044fd3326ba36 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 26 Mar 2003 09:19:02 +0000 Subject: [PATCH] Issue a user-friendly warning when no toolsets are configured. [SVN r18090] --- new/build-system.jam | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/new/build-system.jam b/new/build-system.jam index faeb0a763..818d3aecd 100644 --- a/new/build-system.jam +++ b/new/build-system.jam @@ -67,6 +67,16 @@ if [ MATCH (--dump-projects) : [ modules.peek : ARGV ] ] project-root.print ; } +if ! [ feature.values toolset ] +{ + ECHO "warning: no toolsets are configured." ; + ECHO "warning: you won't be able to build C++ programs." ; + ECHO "warning: please consult the documentation." ; + ECHO ; +} + + + build-request = [ build-request.from-command-line [ modules.peek : ARGV ] ] ; properties = [ $(build-request).get-at 2 ] ;