From a4004368dfa3567bad9a56a82d7da0b95edfb8ff Mon Sep 17 00:00:00 2001 From: Randy Secrist Date: Sun, 16 Oct 2011 15:09:06 -0600 Subject: Set compiler to llvm if gcc can't be found. --- kerl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kerl b/kerl index ca6e043..6d27100 100755 --- a/kerl +++ b/kerl @@ -297,7 +297,7 @@ do_build() if [ -x `which gcc-4.2` ]; then KERL_CONFIGURE_OPTIONS="CC=gcc-4.2 $KERL_CONFIGURE_OPTIONS" else - KERL_CONFIGURE_OPTIONS="CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS" + KERL_CONFIGURE_OPTIONS="CC=llvm-gcc-4.2 CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS" fi fi fi -- cgit v1.2.3 From 9b0152a3ffd007003d9bd3144efbdf53b1d2b51f Mon Sep 17 00:00:00 2001 From: Randy Secrist Date: Sun, 16 Oct 2011 15:45:51 -0600 Subject: Added quotes to protect bash evaluation to determine if gcc-4.2 exists under darwin. --- kerl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kerl b/kerl index 6d27100..de357b0 100755 --- a/kerl +++ b/kerl @@ -294,7 +294,7 @@ do_build() if lion_support $1; then true else - if [ -x `which gcc-4.2` ]; then + 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" -- cgit v1.2.3 From 963a0c5a8d92b8fb0a9b3a38766a280b52445285 Mon Sep 17 00:00:00 2001 From: Randy Secrist Date: Sun, 16 Oct 2011 21:58:36 -0600 Subject: Set the -O0 option for using llvm under lion_support. --- kerl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kerl b/kerl index de357b0..56852c3 100755 --- a/kerl +++ b/kerl @@ -292,7 +292,7 @@ do_build() Darwin) if [ `gcc --version | grep llvm | wc -l` = "1" ]; then if lion_support $1; then - true + 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" -- cgit v1.2.3