ccache: fix tests for cross compile targets

chayleaf 71d9bb7c 41ebe3a5

+4 -2
+4 -2
pkgs/development/tools/misc/ccache/default.nix
··· 31 31 # Linux it uses objdump. We don't have dwarfdump packaged for 32 32 # Darwin, so this patch updates the test to also use objdump on 33 33 # Darwin. 34 + # Additionally, when cross compiling, the correct target prefix 35 + # needs to be set. 34 36 (substituteAll { 35 - src = ./force-objdump-on-darwin.patch; 36 - objdump = "${binutils.bintools}/bin/objdump"; 37 + src = ./fix-objdump-path.patch; 38 + objdump = "${binutils.bintools}/bin/${binutils.targetPrefix}objdump"; 37 39 }) 38 40 ]; 39 41
pkgs/development/tools/misc/ccache/force-objdump-on-darwin.patch pkgs/development/tools/misc/ccache/fix-objdump-path.patch