ccache: fix tests for cross compile targets

This commit is contained in:
chayleaf 2023-07-30 18:04:20 +07:00
parent 41ebe3a503
commit 71d9bb7cc6
2 changed files with 4 additions and 2 deletions

View file

@ -31,9 +31,11 @@ stdenv.mkDerivation (finalAttrs: {
# Linux it uses objdump. We don't have dwarfdump packaged for
# Darwin, so this patch updates the test to also use objdump on
# Darwin.
# Additionally, when cross compiling, the correct target prefix
# needs to be set.
(substituteAll {
src = ./force-objdump-on-darwin.patch;
objdump = "${binutils.bintools}/bin/objdump";
src = ./fix-objdump-path.patch;
objdump = "${binutils.bintools}/bin/${binutils.targetPrefix}objdump";
})
];