Skip to content

Commit

Permalink
bintools-wrapper: fix unknown emulation error message
Browse files Browse the repository at this point in the history
Using the + operator with throw doesn’t seems to work properly. You
need to use antiquotes here to get the targetPlatform config included.
  • Loading branch information
matthewbauer committed Feb 26, 2019
1 parent aab8c7b commit 85536e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/bintools-wrapper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85536e8

Please sign in to comment.