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:
Line 50 in 8bc40ed
Line 56 in 8bc40ed
Line 1 in 8bc40ed
Line 1 in 8bc40ed
Other operating systems are afforded the courtesy of being able to change the compiler via the CC
variable:
On other operating systems the default compiler is gcc
:
Line 33 in 8bc40ed
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
.
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').