diff options
author | Flaviu Tamas <me@flaviutamas.com> | 2018-05-06 05:23:08 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-06 11:23:08 +0200 |
commit | b13296533012426d386e986322009363af8a51bd (patch) | |
tree | c194c5d09b93c3fec5d1eb0af3876f681d540af2 /tools | |
parent | d3ad46702284ad248d2a27bb65812315168c4beb (diff) | |
download | Nim-b13296533012426d386e986322009363af8a51bd.tar.gz |
Allow using CC environment variable with csources (#7754)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/niminst/buildsh.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/niminst/buildsh.tmpl b/tools/niminst/buildsh.tmpl index 3e7d8ae6e..be6d43754 100644 --- a/tools/niminst/buildsh.tmpl +++ b/tools/niminst/buildsh.tmpl @@ -39,8 +39,8 @@ do esac done -CC="gcc" -LINKER="gcc" +CC="${CC:-gcc}" +LINKER="${LD:-gcc}" COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} ?{c.ccompiler.flags}$extraBuildArgs" LINK_FLAGS="${LDFLAGS:-} ?{c.linker.flags}" PS4="" |