Skip to content

Commit

Permalink
cc-wrapper: fix guessing mainProgram (#323611)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Sep 2, 2024
2 parents b29aa54 + a58ad45 commit 89bb3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/cc-wrapper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,6 @@ stdenvNoCC.mkDerivation {
(optionalAttrs (cc_ ? meta) (removeAttrs cc.meta ["priority"])) //
{ description = attrByPath ["meta" "description"] "System C compiler" cc_ + " (wrapper script)";
priority = 10;
mainProgram = if name != "" then name else ccName;
mainProgram = if name != "" then name else "${targetPrefix}${ccName}";
};
}

0 comments on commit 89bb3df

Please sign in to comment.