diff options
author | Alexis Ballier <aballier@gentoo.org> | 2012-10-18 22:55:25 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2012-10-18 22:55:25 +0000 |
commit | 0a61f49747da10afad4c0db53bd6d16a041f44e2 (patch) | |
tree | ea6f4d72bc9c0eedb6378f9233ae6a2549fdeb25 /profiles | |
parent | stable ppc ppc64, bug #437610 (diff) | |
download | gentoo-2-0a61f49747da10afad4c0db53bd6d16a041f44e2.tar.gz gentoo-2-0a61f49747da10afad4c0db53bd6d16a041f44e2.tar.bz2 gentoo-2-0a61f49747da10afad4c0db53bd6d16a041f44e2.zip |
Add (very) experimental profile with clang as system compiler. Do not expect it to work yet, but help in getting it done is welcome :).
Diffstat (limited to 'profiles')
4 files changed, 72 insertions, 0 deletions
diff --git a/profiles/default/bsd/fbsd/amd64/9.1/clang/packages b/profiles/default/bsd/fbsd/amd64/9.1/clang/packages new file mode 100644 index 000000000000..57df4ebbf9e7 --- /dev/null +++ b/profiles/default/bsd/fbsd/amd64/9.1/clang/packages @@ -0,0 +1,9 @@ +# Copyright 1999-2012 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/fbsd/amd64/9.1/clang/packages,v 1.1 2012/10/18 22:55:25 aballier Exp $ + +# Don't remove gcc from here: clang uses it for crt{begin,end}*.o and its c++ +# stack. + +*sys-devel/llvm +*sys-devel/clang diff --git a/profiles/default/bsd/fbsd/amd64/9.1/clang/packages.build b/profiles/default/bsd/fbsd/amd64/9.1/clang/packages.build new file mode 100644 index 000000000000..7eb7cbb75a6c --- /dev/null +++ b/profiles/default/bsd/fbsd/amd64/9.1/clang/packages.build @@ -0,0 +1,54 @@ +# Copyright 1999-2012 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/fbsd/amd64/9.1/clang/packages.build,v 1.1 2012/10/18 22:55:25 aballier Exp $ + +# This file describes the packages needed to build a stage 1 based on this +# profile. Packages in this file are built in order. + +# Please do not move perl before baselayout doing so will break lib -> lib64 +# symlinks on systems that use them. + +app-arch/bzip2 +app-arch/gzip +dev-libs/openssl +app-arch/libarchive +app-shells/bash +net-misc/rsync +net-misc/wget +sys-devel/autoconf +sys-devel/automake +sys-devel/libtool +sys-apps/openrc +sys-apps/baselayout +sys-apps/diffutils +sys-apps/file +sys-apps/findutils +sys-apps/gawk +sys-apps/grep +sys-apps/less +sys-apps/portage +sys-apps/sed +sys-apps/texinfo +sys-devel/binutils +sys-devel/bison +sys-devel/flex +sys-devel/gcc +dev-libs/libiconv +sys-devel/gettext +sys-devel/gnuconfig +sys-devel/make +sys-devel/patch +app-editors/nano +virtual/editor +virtual/libc +virtual/os-headers +sys-freebsd/freebsd-mk-defs +sys-freebsd/freebsd-lib +sys-freebsd/freebsd-libexec +sys-freebsd/freebsd-bin +sys-freebsd/freebsd-sbin +sys-freebsd/freebsd-ubin +sys-freebsd/freebsd-usbin +sys-freebsd/freebsd-contrib +sys-devel/llvm +sys-devel/clang diff --git a/profiles/default/bsd/fbsd/amd64/9.1/clang/parent b/profiles/default/bsd/fbsd/amd64/9.1/clang/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/default/bsd/fbsd/amd64/9.1/clang/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/default/bsd/fbsd/amd64/9.1/clang/profile.bashrc b/profiles/default/bsd/fbsd/amd64/9.1/clang/profile.bashrc new file mode 100644 index 000000000000..7b7a3adc18cc --- /dev/null +++ b/profiles/default/bsd/fbsd/amd64/9.1/clang/profile.bashrc @@ -0,0 +1,8 @@ +#!/bin/bash +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/fbsd/amd64/9.1/clang/profile.bashrc,v 1.1 2012/10/18 22:55:25 aballier Exp $ + +# Check if clang/clang++ exist before setting them so that we can more easily +# switch to this profile and build stages. +type -P clang > /dev/null && export CC=clang +type -P clang++ > /dev/null && export CXX=clang++ |