1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

cc-wrapper: fix guessing mainProgram (#323611)

This commit is contained in:
Artturin 2024-09-03 02:17:57 +03:00 committed by GitHub
commit 89bb3dfc21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}";
};
}