summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/arch/amd64-fbsd/clang/profile.bashrc')
-rw-r--r--profiles/arch/amd64-fbsd/clang/profile.bashrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/profiles/arch/amd64-fbsd/clang/profile.bashrc b/profiles/arch/amd64-fbsd/clang/profile.bashrc
new file mode 100644
index 000000000000..23cc5088393a
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/profile.bashrc
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Id$
+
+# 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 && [ -f /usr/lib/libc++.so ] && export CXX="clang++ -stdlib=libc++"