-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.
Description
The compiler should gracefully handle invocations of the linker which would otherwise blow the system limits. I've heard reports of this happening on both Unix and Windows, so this is a cross-platform concern.
My preference of how to implement this would be:
- Linkers typically support this method via passing arguments as
@file
wherefile
is a path on the filesystem that contains a bunch of options. - Short linker invocations should not use
@file
syntax for debuggability - The compiler automatically switches to
@file
when the command line gets too big. - rustc has some arbitrary limit for bytes it'll pass as arguments to
Command
, likely well below the platform specific limits
I don't know the precise syntax of these files, unfortunately, but I'm sure google does somewhere!
jsgf and hanna-kruppe
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.