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:
commit
89bb3dfc21
|
@ -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}";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue