2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 13:42:14 +00:00

Corrects a problem in the handling of <conditional>@rule in

the lib rule, e.g.:

lib foo : : <conditional>@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]
This commit is contained in:
Vladimir Prus
2006-02-13 07:39:17 +00:00
parent 13cfc022e9
commit 311db52d22

View File

@@ -404,7 +404,10 @@ class lib-generator : generator
local properties = [ $(property-set).raw ] ;
# Determine the needed target type
local actual-type ;
if <search> in $(properties:G) || <name> in $(properties:G)
# <source>files can be generated by <conditional>@rule feature
# in which case we don't consider it a SEARCHED_LIB type.
if ! <source> in $(properties:G) &&
( <search> in $(properties:G) || <name> in $(properties:G) )
{
actual-type = SEARCHED_LIB ;
}