From: Sergei Trofimovich Date: Sun, 24 May 2020 22:10:44 +0000 (+0100) Subject: dev-lang/nim: use $CC instead of 'gcc', bug #722958 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=239f1fd723d0dd2c767e644c0c728a7a4eb030f3;p=gentoo.git dev-lang/nim: use $CC instead of 'gcc', bug #722958 Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/722958 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich --- diff --git a/dev-lang/nim/nim-1.2.0.ebuild b/dev-lang/nim/nim-1.2.0.ebuild index 3f1e8966eb08..78fadad3c55e 100644 --- a/dev-lang/nim/nim-1.2.0.ebuild +++ b/dev-lang/nim/nim-1.2.0.ebuild @@ -38,10 +38,17 @@ nim_use_enable() { use $1 && echo "-d:$2" } -src_compile() { +src_configure() { export XDG_CACHE_HOME=${T}/cache #667182 tc-export CC LD + # Override default CC=gcc. + echo "gcc.exe = \"$(tc-getCC)\"" >> config/nim.cfg || die + echo "gcc.linkerexe = \"$(tc-getCC)\"" >> config/nim.cfg || die +} + +src_compile() { + _run ./build.sh _run ./bin/nim --parallelBuild:$(makeopts_jobs) c koch