Skip to content

Commit de3471c

Browse files
authored
Consistent use of ${targetCC.targetPrefix}
1 parent 7fee6ed commit de3471c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/ghc/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ stdenv.mkDerivation (rec {
434434
export STRIP="${bintoolsFor.strip}/bin/${bintoolsFor.strip.targetPrefix}strip"
435435
'' + lib.optionalString (stdenv.targetPlatform.linker == "cctools") ''
436436
export OTOOL="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}otool"
437-
if [ -f ${targetCC}/bin/install_name_tool ]; then
437+
if [ -f ${targetCC}/bin/${targetCC.targetPrefix}install_name_tool ]; then
438438
export INSTALL_NAME_TOOL="${targetCC}/bin/${targetCC.targetPrefix}install_name_tool"
439439
else
440440
export INSTALL_NAME_TOOL="${bintoolsFor.install_name_tool}/bin/${bintoolsFor.install_name_tool.targetPrefix}install_name_tool"

0 commit comments

Comments
 (0)