diff options
author | Yurii Rashkovskii <[email protected]> | 2015-01-07 08:55:09 +0700 |
---|---|---|
committer | Yurii Rashkovskii <[email protected]> | 2015-01-07 08:55:09 +0700 |
commit | c405159366e1ec8225b0d4c14de42c62125b66ce (patch) | |
tree | 07b001d829506fe909306834a3bd6d671988eb15 /kerl | |
parent | 15af1824f9c8650189b015a63199e0ebb040e0e2 (diff) | |
parent | 0e9500341639038042f6c25c9424e98a49f1135a (diff) | |
download | kerl-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-x | kerl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |