Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497524 - use of alternative C compiler per package
Summary: use of alternative C compiler per package
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-08 14:00 UTC by Sylvain BERTRAND
Modified: 2014-01-08 15:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain BERTRAND 2014-01-08 14:00:53 UTC
The idea would be to be able to define a target C compiler with its custom flags to be used to compile a package.
For instance, we could expect a file like /etc/portage/package.cc.
C compilers I can think of are: tinycc, clang, openwatcom...
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2014-01-08 15:03:39 UTC
see package.env, that does what you need (just set CC=...)
Comment 2 Alex Xu (Hello71) 2014-01-08 15:04:01 UTC
Already exists.

# cat > /etc/portage/env/clang << EOF
CC=clang
CXX=clang++
EOF
# echo "app-arch/zopfli clang" >> /etc/portage/package.env

Uses clang for zopfli compilation.
Comment 3 Sylvain BERTRAND 2014-01-08 15:44:04 UTC
thx! I would prefer tinycc (tcc) :)