|
Boost-Build : |
From: Jürgen Hunold (hunold_at_[hidden])
Date: 2006-10-25 01:52:12
Hi Rene !
This commit just broke my builds :-))
So whats wrong:
First, my user-config.jam sets up my gcc-wrapper-script (for icecc and
STLfilt) like
using gcc : 4.1 : /home/hunold/bin/gcc-4.1.sh
And to find out more about the compiler you simply called:
An'n Middeweken 25 Oktober 2006, 01:43 hett Rene Rivera schreven:
> + # Autodetect the version and flavor if not given.
> + if $(bin)
> + {
> + local command-info = [ MATCH "^[^ ]+[ ]+[^ ]+[ ]+([^
> ]+)[^(]*[(]?([^)]*)" + : [ SHELL "$(bin)/gcc --version" ] ] ;
> + version ?= $(command-info[1]) ;
> + flavor ?= [ regex.replace $(command-info[2]:L) "[ .-:]" "_" ] ;
> + }
I propose to call "SHELL $(command) --version" for support of non-standard gcc
names. Please find the patch attached.
This is important because on debian for example, you can have several gcc
installed in parallel, the non default compilers are then
named /usr/bin/gcc-3.3 and so on. Those won't be usable, too.
Another fact is that I now get "gcc-suse_linux-4.1" instead of a
simple "gcc-4.1" but I can live with that ;-))
But it would be nice if BBv2 could detect the target architecture and adjust
build paths accordingly.
That would mean that for:
Target: x86_64-suse-linux
it would extract x86_64 on Linux.
-- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold_at_[hidden] ! www.ivembh.de
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