[BBv2] "lib" prefix isn't added to static libraries in bbv2

I had to add a dirty hack to stage.jam in order to get "lib" prefix which is used to distinguish between static and import libraries on Windows. I modified virtual-target.add-prefix-and-suffix the following way. Is it ok? Andrey rule add-prefix-and-suffix ( specified-name : type ? : property-set ) { local suffix = [ type.generated-target-suffix $(type) : $(property-set) ] ; suffix = .$(suffix) ; local prefix ; if [ type.is-derived $(type) LIB ] && ! [ MATCH ^(lib) : $(specified-name) ] { if [ os.on-unix ] { prefix = "lib" ; } else { if [ os.on-windows ] && [ $(property-set).get <link> ] = "static" { prefix = "lib" ; } } } return $(prefix:E="")$(specified-name)$(suffix:E="") ; }
participants (1)
-
Andrey Melnikov