cc-wrapper: Use getExe for expand-response-params

The binary in `expand-response-params` may have an extension like `.exe`

`expand-response-params` is `""` in bootstrapping
This commit is contained in:
Artturin 2024-09-12 07:58:28 +03:00
parent e09e0b5a3c
commit e791a35b58

View File

@ -733,7 +733,7 @@ stdenvNoCC.mkDerivation {
# for substitution in utils.bash # for substitution in utils.bash
# TODO(@sternenseemann): invent something cleaner than passing in "" in case of absence # TODO(@sternenseemann): invent something cleaner than passing in "" in case of absence
expandResponseParams = "${expand-response-params}/bin/expand-response-params"; expandResponseParams = lib.optionalString (expand-response-params != "") (lib.getExe expand-response-params);
# TODO(@sternenseemann): rename env var via stdenv rebuild # TODO(@sternenseemann): rename env var via stdenv rebuild
shell = getBin runtimeShell + runtimeShell.shellPath or ""; shell = getBin runtimeShell + runtimeShell.shellPath or "";
gnugrep_bin = optionalString (!nativeTools) gnugrep; gnugrep_bin = optionalString (!nativeTools) gnugrep;