Gentoo Archives: gentoo-dev

From: Karl Trygve Kalleberg <karltk@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] gcc vs tcc
Date: Sat, 30 Nov 2002 14:16:13
Message-Id: 20021130151745.71ae45d6.karltk@gentoo.org
In Reply to: Re: [gentoo-dev] gcc vs tcc by Fernand Albarracin
1 On Sat, 30 Nov 2002 01:30:40 +0100
2 Fernand Albarracin <fernand8@×××××××.fr> wrote:
3
4 > Hi,
5 >
6 > How about simply using an environnement variable such as CC ? The user
7 > would set it in /etc/make.conf as he already does with CFLAGS and
8 > friends. But he would propably do the following instead :
9 >
10 > CC=tcc; CFLAGS=-g; emerge stuff
11 >
12 > CC would even allow to have multiple GCC version to choose from
13 > (right?). And the best from a maintainer point of view: no
14 > ebuild-specific work required.
15
16 In this case, the problem is that the user will have to be informed of
17 that _before_ doing the gobo compilation. As per ebuild rules, we are not
18 allowed to stop the build process and ask the user for input, so at best,
19 he'd see a notice scrolling by at high speed saying "this package would
20 take 2mins to compile if you have chosen tcc, but you haven't, too bad for
21 you".
22
23 I certainly agree with you that the CC=tcc is a nicer approach (perhaps
24 even the nicest approach of them all), but it requires the user to
25 actually _know_ he can benefit from using tcc on gobo beforehand. That's a
26 very steep requirement imho, given the fact that very few people have
27 heard of tcc, nobody's heard of gobo, and it's hardly commonplace to think
28 you can get a 30x improvement in compilation time just by switching
29 compilers :)
30
31
32 Kind regards,
33
34 Karl T
35
36 --
37 gentoo-dev@g.o mailing list