From 311db52d222b9d76c2edd7b482e10b3acf500adc Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 13 Feb 2006 07:39:17 +0000 Subject: [PATCH] Corrects a problem in the handling of @rule in the lib rule, e.g.: lib foo : : @sources ; Prior to the patch, this was treating the library as a prebuilt library because of the absence of any source arguments. Thus nothing would get built. * tools/builtin.jam (lib-generator.run): Added additional constraint when setting library type to SEARCHED_LIB. Patch from Mark Evans. [SVN r32880] --- v2/tools/builtin.jam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2/tools/builtin.jam b/v2/tools/builtin.jam index 8dd28959f..42e726dfa 100644 --- a/v2/tools/builtin.jam +++ b/v2/tools/builtin.jam @@ -404,7 +404,10 @@ class lib-generator : generator local properties = [ $(property-set).raw ] ; # Determine the needed target type local actual-type ; - if in $(properties:G) || in $(properties:G) + # files can be generated by @rule feature + # in which case we don't consider it a SEARCHED_LIB type. + if ! in $(properties:G) && + ( in $(properties:G) || in $(properties:G) ) { actual-type = SEARCHED_LIB ; }