From b375bc345ecee98d7abaf8d4566aeb3c8e463b98 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 1 Nov 2008 08:21:56 +0000 Subject: [PATCH] Properly set threading options when compiling PCH. Bug report from Jeroen van der Wulp. [SVN r49504] --- src/tools/gcc.jam | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 3e5dca805..ee92f0564 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -34,6 +34,7 @@ if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] feature.extend toolset : gcc ; +# feature.subfeature toolset gcc : flavor : : optional ; toolset.inherit-generators gcc : unix : unix.link unix.link.dll ; toolset.inherit-flags gcc : unix ; @@ -130,6 +131,7 @@ rule init ( version ? : command * : options * ) condition = [ common.check-init-parameters gcc : version $(version) ] ; + condition = $(condition) ; #/ ; } common.handle-options gcc : $(condition) : $(command) : $(options) ; @@ -360,6 +362,7 @@ toolset.flags gcc.compile.c++ TEMPLATE_DEPTH ; rule compile.c++.pch ( targets * : sources * : properties * ) { + setup-threading $(targets) : $(sources) : $(properties) ; setup-fpic $(targets) : $(sources) : $(properties) ; } @@ -370,6 +373,7 @@ actions compile.c++.pch rule compile.c.pch ( targets * : sources * : properties * ) { + setup-threading $(targets) : $(sources) : $(properties) ; setup-fpic $(targets) : $(sources) : $(properties) ; }