Skip to content

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

@SimonSapin

Description

@SimonSapin
Contributor

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 ?

Activity

added a commit that references this issue on Mar 3, 2018
ef5d9f8
SimonSapin

SimonSapin commented on Mar 3, 2018

@SimonSapin
ContributorAuthor

I could compile with #293.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @SimonSapin

        Issue actions

          "Argument list too long" with many files on Windows · Issue #292 · rust-lang/cc-rs