gittup/tup

Use of clang is hardcoded on macOS and FreeBSD

ryandesign opened this issue · 1 comments

The use of the clang compiler is hardcoded on macOS and FreeBSD:

tup/build.sh

Line 50 in 8bc40ed

CC=clang

tup/build.sh

Line 56 in 8bc40ed

CC=clang

CC = clang

CC = clang

Other operating systems are afforded the courtesy of being able to change the compiler via the CC variable:

e4db919

On other operating systems the default compiler is gcc:

tup/build.sh

Line 33 in 8bc40ed

: ${CC:=gcc}

I suggest that on all operating systems the default compiler should be cc and that on all operating systems the user should be allowed to override it with CC.

gittup commented

Good catch, thanks. I've left the default compilers as-is for now, but they are now override-able in the build.sh script for the bootstrap version and via CONFIG_CC in tup.config for the actual tup build on all platforms. (The only exception is for the build-win32.sh script, which is created from 'tup generate').