bintools-wrapper: fix unknown emulation error message

Using the + operator with throw doesn’t seems to work properly. You
need to use antiquotes here to get the targetPlatform config included.
This commit is contained in:
Matthew Bauer 2019-02-05 10:24:00 -05:00
parent aab8c7ba43
commit 85536e892b

View file

@ -189,7 +189,7 @@ stdenv.mkDerivation {
else if targetPlatform.isSparc then "sparc"
else if targetPlatform.isAvr then "avr"
else if targetPlatform.isAlpha then "alpha"
else throw "unknown emulation for platform: " + targetPlatform.config;
else throw "unknown emulation for platform: ${targetPlatform.config}";
in targetPlatform.platform.bfdEmulation or (fmt + sep + arch);
strictDeps = true;