summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro.dev@gmail.com>2016-03-21 07:43:56 +0900
committerYuta SATOH <nigoro.dev@gmail.com>2016-03-21 07:43:56 +0900
commite890a963a505f2a7c3927b368521b6a03740caf9 (patch)
tree273893eb7df6607d682fe89c41148739c0e6faef /scripts
parentautomatic_updater.sh: added update clang. (diff)
downloadgentoo-bsd-e890a963a505f2a7c3927b368521b6a03740caf9.tar.gz
gentoo-bsd-e890a963a505f2a7c3927b368521b6a03740caf9.tar.bz2
gentoo-bsd-e890a963a505f2a7c3927b368521b6a03740caf9.zip
automatic_updater.sh: clang updated twice.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/automatic_updater.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/automatic_updater.sh b/scripts/automatic_updater.sh
index b49d2b2..1439751 100755
--- a/scripts/automatic_updater.sh
+++ b/scripts/automatic_updater.sh
@@ -82,7 +82,10 @@ update_toolchain(){
source /etc/profile
emerge sys-devel/libtool --exclude sys-freebsd/*
emerge sys-devel/binutils --exclude sys-freebsd/*
- type -P clang > /dev/null && emerge -u sys-devel/clang --exclude sys-freebsd/*
+ if type -P clang > /dev/null ; then
+ CC=gcc CXX=g++ CXXFLAGS="-O2 -pipe" emerge -u sys-devel/clang --exclude sys-freebsd/*
+ emerge sys-devel/llvm sys-devel/clang --exclude sys-freebsd/*
+ fi
}
remove_pmask(){