Use $CC and $CPP if provided

Let the user select the compiler he wants to use to compile Factor
by using the supplied $CC and $CPP instead of just discarding them.
If not present, we default to gcc and g++ (the current behaviour).
Thomas Deniau 2009-06-19 16:34:00 +02:00 committed by Thomas Deniau
parent 6ff7e2cba7
commit 8f9c4a78a4
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
CC = gcc CC ?= gcc
CPP = g++ CPP ?= g++
AR = ar AR = ar
LD = ld LD = ld

View File

@ -97,7 +97,7 @@ set_md5sum() {
set_gcc() { set_gcc() {
case $OS in case $OS in
openbsd) ensure_program_installed egcc; CC=egcc;; openbsd) ensure_program_installed egcc; CC=egcc;;
*) CC=gcc;; *) CC=${CC:=gcc};;
esac esac
} }