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:
parent
aab8c7ba43
commit
85536e892b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user