From 4b3708d888c20c0fa6cd66e03540424aabadcf29 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 28 May 2015 07:01:39 +0300 Subject: [PATCH] rc: also use clang with homebrew/linuxbrew ref: https://github.com/Homebrew/linuxbrew/issues/415#issuecomment-106058234 --- rc/bashrc | 1 + rc/zshrc | 1 + 2 files changed, 2 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index 074ecf72..3d10ec1d 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -809,6 +809,7 @@ erase-mbr() { # place for this. if hash clang 2>/dev/null; then export CC=clang + export HOMEBREW_CC=clang fi if hash clang++ 2>/dev/null; then diff --git a/rc/zshrc b/rc/zshrc index ba142c6c..62e2335e 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -798,6 +798,7 @@ erase-mbr() { # place for this. if hash clang 2>/dev/null; then export CC=clang + export HOMEBREW_CC=clang fi if hash clang++ 2>/dev/null; then