From ae158eba7115e878cc05c817efce603748360d43 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 3 May 2010 17:08:04 +0200 Subject: .zshrc: Use clang as default cc (if available) --- etc/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/.zshrc b/etc/.zshrc index 50d3de8..de4434d 100644 --- a/etc/.zshrc +++ b/etc/.zshrc @@ -76,6 +76,10 @@ if (( EUID != 0)) { export MAKEFLAGS=j$(grep -c '^processor' /proc/cpuinfo) +if [[ -n ${commands[clang]} ]] { + export CC=clang +} + typeset -U path path=(~/bin ${path}) -- cgit v1.2.3