From 843ea4770ab78df0b809de47a2e383fc62318782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Wed, 8 Aug 2012 17:21:01 +0000 Subject: [PATCH] Boost Build cleanup - minor stylistic changes. [SVN r79930] --- src/build-system.jam | 2 +- src/build/project.jam | 4 ++-- src/build/targets.jam | 22 ++++++++++++---------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/build-system.jam b/src/build-system.jam index 15fddbb8b..db93f22d4 100644 --- a/src/build-system.jam +++ b/src/build-system.jam @@ -601,7 +601,7 @@ local rule should-clean-project ( project ) # that all project files already be loaded. # FIXME: This is not entirely true. Additional project files may be loaded # only later via the project.find() rule when dereferencing encountered - # target ids containing absolute project references. See what to do about + # target ids containing explicit project references. See what to do about # those as such 'lazy loading' may cause problems that are then extremely # difficult to debug. local build-request = [ build-request.from-command-line $(.argv) diff --git a/src/build/project.jam b/src/build/project.jam index 83e8ec86b..8bf116ca5 100644 --- a/src/build/project.jam +++ b/src/build/project.jam @@ -585,7 +585,7 @@ local rule register-id ( id : module ) if [ MATCH (//) : $(id) ] { import errors ; - errors.user-error Project id may not contain multiple successive slash + errors.user-error Project id may not contain two consecutive slash characters (project id: '$(id)'). ; } @@ -602,7 +602,7 @@ local rule register-id ( id : module ) local orig-name = [ $(orig-p).name ] ; import errors ; - errors.user-error Attempt to redeclare already existing project id + errors.user-error Attempt to redeclare already registered project id '$(id)'. : Original project: : " " Name: $(orig-name:E=---) diff --git a/src/build/targets.jam b/src/build/targets.jam index 30d588c34..7a409ce88 100644 --- a/src/build/targets.jam +++ b/src/build/targets.jam @@ -209,8 +209,8 @@ class project-target : abstract-target } } - # This is needed only by the 'make' rule. Need to find the way to make - # 'make' work without this method. + # This is needed only by the 'make' rule. Need to find a way to make 'make' + # work without this method. # rule project-module ( ) { @@ -372,7 +372,8 @@ class project-target : abstract-target } else { - extra-error-message = could not find project '$(project-part)' ; + extra-error-message = could not resolve project reference + '$(project-part)' ; } } else @@ -447,7 +448,7 @@ class project-target : abstract-target import errors : user-error : errors.user-error ; errors.user-error Unable to find file or target named : " " '$(id)' - : referred from project at + : referred to from project at : " " '$(current-location)' : $(extra-error-message) ; } @@ -682,7 +683,7 @@ class main-target : abstract-target } # Select an alternative for this main target, by finding all alternatives - # which requirements are satisfied by 'properties' and picking the one with + # whose requirements are satisfied by 'properties' and picking the one with # the longest requirements set. Returns the result of calling 'generate' on # that alternative. # @@ -1493,7 +1494,8 @@ class typed-target : basic-target rule construct ( name : source-targets * : property-set ) { - local r = [ generators.construct $(self.project) $(name:S=) : $(self.type) + local r = [ generators.construct $(self.project) $(name:S=) + : $(self.type) : [ property-set.create [ $(property-set).raw ] $(self.type) ] : $(source-targets) : true ] ; @@ -1502,15 +1504,15 @@ class typed-target : basic-target ECHO "warn: Unable to construct" [ full-name ] ; # Are there any top-level generators for this type/property set. - if ! [ generators.find-viable-generators $(self.type) - : $(property-set) ] + if ! [ generators.find-viable-generators $(self.type) : + $(property-set) ] { ECHO "error: no generators were found for type '$(self.type)'" ; ECHO "error: and the requested properties" ; ECHO "error: make sure you've configured the needed tools" ; ECHO "See http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html" ; - ECHO "To debug this problem, try the --debug-generators option." ; - EXIT ; + EXIT "To debug this problem, try the --debug-generators option." + ; } } return $(r) ;