From e7a8a10df939b407334e14ba4abf225f0da4c2d2 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 9 Oct 2002 02:50:58 +0000 Subject: [PATCH] Allow for toolset chaining [SVN r15814] --- mingw-tools.jam | 7 +++++++ v1/mingw-tools.jam | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/mingw-tools.jam b/mingw-tools.jam index 45daf19a6..1f546a0cd 100644 --- a/mingw-tools.jam +++ b/mingw-tools.jam @@ -8,6 +8,13 @@ set-as-singleton MINGW_ROOT_DIRECTORY MINGW_BIN_DIRECTORY MINGW_INCLUDE_DIRECTORY MINGW_STDLIB_DIRECTORY ; # compute directories for invoking MINGW + +# Get these variable set on the targets so that we can re-use the +# build actions for other toolsets using this one as a base. +flags mingw MINGW_BIN_DIRECTORY ; +flags mingw MINGW_INCLUDE_DIRECTORY ; +flags mingw MINGW_STDLIB_DIRECTORY ; + MINGW_BIN_DIRECTORY ?= $(MINGW_ROOT_DIRECTORY)$(SLASH)bin$(SLASH) ; MINGW_BIN_DIRECTORY ?= "" ; # Don't clobber tool names if MINGW_ROOT_DIRECTORY not set MINGW_INCLUDE_DIRECTORY ?= $(MINGW_ROOT_DIRECTORY)$(SLASH)include ; diff --git a/v1/mingw-tools.jam b/v1/mingw-tools.jam index 45daf19a6..1f546a0cd 100644 --- a/v1/mingw-tools.jam +++ b/v1/mingw-tools.jam @@ -8,6 +8,13 @@ set-as-singleton MINGW_ROOT_DIRECTORY MINGW_BIN_DIRECTORY MINGW_INCLUDE_DIRECTORY MINGW_STDLIB_DIRECTORY ; # compute directories for invoking MINGW + +# Get these variable set on the targets so that we can re-use the +# build actions for other toolsets using this one as a base. +flags mingw MINGW_BIN_DIRECTORY ; +flags mingw MINGW_INCLUDE_DIRECTORY ; +flags mingw MINGW_STDLIB_DIRECTORY ; + MINGW_BIN_DIRECTORY ?= $(MINGW_ROOT_DIRECTORY)$(SLASH)bin$(SLASH) ; MINGW_BIN_DIRECTORY ?= "" ; # Don't clobber tool names if MINGW_ROOT_DIRECTORY not set MINGW_INCLUDE_DIRECTORY ?= $(MINGW_ROOT_DIRECTORY)$(SLASH)include ;