#!/bin/bash # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # Check if clang/clang++ exist before setting them so that we can more easily # switch to this profile and build stages. # Some packages will require BUILD_{CC,CXX} variables, bug 595878. type -P clang > /dev/null && export CC=clang && export BUILD_CC=clang type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX=clang++ && export BUILD_CXX=clang++