diff options
author | José Valim <[email protected]> | 2016-05-13 17:12:14 +0200 |
---|---|---|
committer | José Valim <[email protected]> | 2016-05-13 17:12:14 +0200 |
commit | 9f6757c67cd5511fae52eb8f1edfed8654a4df10 (patch) | |
tree | 56b1cb60e4aec279d90d3d07838f2d15a0a90075 | |
parent | fccafcd6a44b2495f3c30317b812d458a54a6294 (diff) | |
download | kerl-9f6757c67cd5511fae52eb8f1edfed8654a4df10.tar.gz kerl-9f6757c67cd5511fae52eb8f1edfed8654a4df10.tar.bz2 kerl-9f6757c67cd5511fae52eb8f1edfed8654a4df10.zip |
Remove Lion support code and stop setting CFLAGS
If for some reason they are running on Lion, developers can set
CFLAGS on their ~/.kerlrc. Otherwise it is not worth setting
CFLAGS and affect the performance of those running on more
recent OS X versions.
Closes #131
-rwxr-xr-x | kerl | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -212,19 +212,6 @@ check_releases() fi } -KERL_NO_LION_SUPPORT="R10B-0 R10B-2 R10B-3 R10B-4 R10B-5 R10B-6 R10B-7 -R10B-8 R10B-9 R11B-0 R11B-1 R11B-2 R11B-3 R11B-4 R11B-5 R12B-0 R12B-1 -R12B-2 R12B-3 R12B-4 R12B-5 R13A R13B R13B01 R13B02 R13B03 R13B04 R14A R14B R14B01 R14B02 R14B03" - -lion_support() { - for v in $KERL_NO_LION_SUPPORT; do - if [ "$v" = "$1" ]; then - return 1 - fi - done - return 0 -} - is_valid_release() { check_releases @@ -432,18 +419,6 @@ _do_build() *) ;; esac - - if [ "$(gcc --version 2>/dev/null | grep -i -c llvm)" = "1" ]; then - if lion_support "$1"; then - KERL_CONFIGURE_OPTIONS="CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS" - else - if [ -x "$(which gcc-4.2)" ]; then - KERL_CONFIGURE_OPTIONS="CC=gcc-4.2 $KERL_CONFIGURE_OPTIONS" - else - KERL_CONFIGURE_OPTIONS="CC=llvm-gcc-4.2 CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS" - fi - fi - fi ;; *) ;; |