[llvm-bugs] [Bug 37620] New: wasm-ld: Support @file arguments to subvert long argument lists on Windows

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 29 09:43:12 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37620

            Bug ID: 37620
           Summary: wasm-ld: Support @file arguments to subvert long
                    argument lists on Windows
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: llvm-bugs at lists.llvm.org, sbc at chromium.org

The GNU linker and MSVC both support invocations like `linker @foo` where `foo`
is a file that has more arguments for the linker. This is quite useful on
Windows where the limits on the length of the command line can be relatively
small for large-ish programs. 

This was originally reported in Rust at
https://github.com/rust-lang-nursery/rust-wasm/issues/184 but currently wasm-ld
doesn't support the `@` syntax. The Rust compiler will automatically switch to
`@` syntax whenever it thinks the command line we're sending to the linker is
too long (assuming that all linkers support it, wrongfully so in this case).

Would it be possible to add support to wasm-ld for @-files to subvert this
restriction on Windows?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180529/691d6a37/attachment.html>


More information about the llvm-bugs mailing list