Skip to content

"Argument list too long" with many files on Windows #292

Closed
@SimonSapin

Description

@SimonSapin

https://github.com/servo/mozangle/tree/ee3f46cc4e6a990634d3cab4d49d1ebfdb785d22 uses the cc crate, and cargo test works on both Linux and Windows for me.

When adding --features egl however, compilation fails on Windows with the error below. This feature is Windows-only, but as far as the cc crate is concerned it mostly adds a bunch more source files.

Internal error occurred: Command "C:\[…]\lib.exe" [many arguments…] with args "lib.exe" failed to start.

When I copy/paste the command into a shell, the output is:

Argument list too long

Could this crate do something like rust-lang/rust#47507 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions