Opened 16 years ago

Closed 16 years ago

#222 closed defect (invalid)

Custom defined build variants are not working as expected

Reported by: Md Abdur Rahim Owned by: somebody
Priority: major Milestone:
Component: component1 Version: 2.0
Keywords: variant rule Cc:

Description

Have a new variant defined like this.

variant debug-ssl : debug : <define>UNICOMM_SSL ;

Evetything works perfectly "inside" current project (Jamroot) - every targets are built correctly. But if we try to use another project by declaring it with use-project rule

use-project smart : $(SMART_ROOT) ;

When we start building the "first" library which depends on smart and specify build variant debug everything is also fine. But if we try to use early defined debug-ssl variant bjam process just finishes when tries to unwind first target defined by smart project (e.g. smartsmart_debug_out) and used as source <library> by "first" library. BJam even says nothing. Process just exits and that's all. I suppose if an error existed, it would say that error encountered.

The target looks like this: lib smart_debug_out

: debug_out.cpp # sources

/boost/iostreamsboost_iostreams

: <link>static # requirements ;

I tried to explicitly specify targets for every variant (debug, debug-ssl) but it makes no difference.

Something like this.

lib smart_debug_out

: debug_out.cpp # sources

/boost/iostreamsboost_iostreams

: <link>static # requirements

<variant>debug

;

lib smart_debug_out

: debug_out.cpp # sources

/boost/iostreamsboost_iostreams

: <link>static # requirements

<variant>debug-ssl

;

And again debug works, but debug-ssl makes bjam exits on half of the way.

I also used --debug-configuration --debug-building options to monitor the build process. It is good seen if view attachments with any diff tool.

Attachments (2)

building_debug (73.0 KB ) - added by Md Abdur Rahim 16 years ago.
build log for <variant>debug
building_debug_ssl (39.7 KB ) - added by Md Abdur Rahim 16 years ago.
build log for <variant>debug-ssl

Download all attachments as: .zip

Change History (3)

by Md Abdur Rahim, 16 years ago

Attachment: building_debug added

build log for <variant>debug

by Md Abdur Rahim, 16 years ago

Attachment: building_debug_ssl added

build log for <variant>debug-ssl

comment:1 by Md Abdur Rahim, 16 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.