Commit e791a35b authored by Artturin's avatar Artturin
Browse files

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
parent e09e0b5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -733,7 +733,7 @@ stdenvNoCC.mkDerivation {

    # for substitution in utils.bash
    # 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
    shell = getBin runtimeShell + runtimeShell.shellPath or "";
    gnugrep_bin = optionalString (!nativeTools) gnugrep;