summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorFlaviu Tamas <me@flaviutamas.com>2018-05-06 05:23:08 -0400
committerAndreas Rumpf <rumpf_a@web.de>2018-05-06 11:23:08 +0200
commitb13296533012426d386e986322009363af8a51bd (patch)
treec194c5d09b93c3fec5d1eb0af3876f681d540af2 /tools
parentd3ad46702284ad248d2a27bb65812315168c4beb (diff)
downloadNim-b13296533012426d386e986322009363af8a51bd.tar.gz
Allow using CC environment variable with csources (#7754)
Diffstat (limited to 'tools')
-rw-r--r--tools/niminst/buildsh.tmpl4
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=""