cc-wrapper: fix guessing mainProgram
ccName points to the pname of the unwrapped cc minus the targetPrefix, thus is always incorrect for cross compilers whose wrappers are prefixed with the target platform name.
This commit is contained in:
parent
0ac90f11dd
commit
a58ad4550c
@ -759,6 +759,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 New Issue
Block a user