aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
authorYurii Rashkovskii <[email protected]>2015-01-07 08:55:09 +0700
committerYurii Rashkovskii <[email protected]>2015-01-07 08:55:09 +0700
commitc405159366e1ec8225b0d4c14de42c62125b66ce (patch)
tree07b001d829506fe909306834a3bd6d671988eb15 /kerl
parent15af1824f9c8650189b015a63199e0ebb040e0e2 (diff)
parent0e9500341639038042f6c25c9424e98a49f1135a (diff)
downloadkerl-c405159366e1ec8225b0d4c14de42c62125b66ce.tar.gz
kerl-c405159366e1ec8225b0d4c14de42c62125b66ce.tar.bz2
kerl-c405159366e1ec8225b0d4c14de42c62125b66ce.zip
Merge pull request #92 from orien/darwin_fix
Fix Darwin LLVM detection
Diffstat (limited to 'kerl')
-rwxr-xr-xkerl4
1 files changed, 2 insertions, 2 deletions
diff --git a/kerl b/kerl
index d65439c..8c630f0 100755
--- a/kerl
+++ b/kerl
@@ -332,7 +332,7 @@ do_build()
{
case "$KERL_SYSTEM" in
Darwin)
- if [ `gcc --version | grep llvm | wc -l` = "1" ]; then
+ if [ `gcc --version 2>/dev/null | grep -i llvm | wc -l` = "1" ]; then
if lion_support $1; then
KERL_CONFIGURE_OPTIONS="CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS"
else
@@ -456,7 +456,7 @@ kerl_deactivate()
fi
if [ -n "\$_KERL_ACTIVE_DIR" ]; then
unset _KERL_ACTIVE_DIR
- fi
+ fi
if [ -n "\$_KERL_SAVED_PS1" ]; then
PS1="\$_KERL_SAVED_PS1"
export PS1