Boost logo

Boost-Build :

Subject: [Boost-build] Antw: Re: Boost build failed if custom toolset path is not available
From: marfro (markus.froschauer_at_[hidden])
Date: 2016-02-25 09:22:08


Thank you very much, the provided workaround works for me.

BR
>>> "Steven Watanabe-4 [via Boost]" <ml-node+s2283326n4683758h49_at_[hidden]> 24.02.2016 03:10 >>>
AMDG

On 02/17/2016 12:49 AM, marfro wrote:
>
> I am successfully compiling the boost library (1_46_0) for msvc and for gcc.
>
> For gcc I use a custom toolset path. Therefore I created an entry in the
> user-config.jam file. If that path is not available the whole boost build
> files even when I build it only for msvc.
>
> After enabling the debug information I see that the build process
> initializes and checks all using statements of the user-config.jam file. Why
> is that necessary, since I already named the toolset on the bjam call?
>
> Does anybody know if I can avoid this behaviour so the build still be
> successfull even though the path is missing?
>

  It used to be that this was required to work,
and it still does with some tools, just not gcc.
The easiest workaround is to check whether the
path exists:

import path ;
if [ path.exists /path/to/g++ ]
{
    using gcc : /path/to/g++ ;
}

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

If you reply to this email, your message will be added to the discussion below:
http://boost.2283326.n4.nabble.com/Boost-build-failed-if-custom-toolset-path-is-not-available-tp4683565p4683758.html
To unsubscribe from Boost build failed if custom toolset path is not available, click here
( http://boost.2283326.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4683565&code=bWFya3VzLmZyb3NjaGF1ZXJAd2l0dG1hbm4tZ3JvdXAuY29tfDQ2ODM1NjV8MTIzODE4NDAxMA==) .
NAML
( http://boost.2283326.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml)

------------------------------------------------------------
Wittmann Kunststoffgeraete Ges.m.b.H.
A-1220 Wien
Geschaeftsfuehrer: Dr. Werner Wittmann
FN 101312p, Handelsgericht Wien
-------------------------------------------------------------

------------------------------------------------------------
This e-mail message has been scanned for Viruses and Content
------------------------------------------------------------

--
View this message in context: http://boost.2283326.n4.nabble.com/Antw-Re-Boost-build-failed-if-custom-toolset-path-is-not-available-tp4683816.html
Sent from the Boost - Build mailing list archive at Nabble.com.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk