-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows warning: output filename collision #41
Comments
If we attempt to force the linux style naming convention by just adding:
The This causes At this point we just need a way to have only the |
There might be a way around the To be clear, this problem of colliding filenames does not occur in actual use. The I believe the real solution is not to edit the TOML between platforms, but to skip the default cargo mode build check since we are not using that output format. |
The following cargo command is enough to emit the error despite it creating no colliding files:
This means the problem is fully outside of cargo-leptos. |
At this point I recommend just waiting until rust-lang/cargo#8519 is resolved. Hopefully before rust-lang/cargo#6313 is elevated to an error from its current status as a warning. Regarding #8519: this is our use case which emits the error without creating colliding files:
Unfortunately this use case is not a minimal test case so I don't know how much time they would really be willing to spend on it. Maybe if we somehow create the Here is the
|
A possible solution for the PDB collision on windows would be to specify a different binary name (which would generate a different PDB name). |
iirc on stable rust you can create If there was a way to define the binary name for cargo-leptos, then windows users could avoid the conflicting name issues without using workspaces. It would also work if there was an option to define the lib name on cargo-leptos, then windows users could use:
|
Dug around in related-issues, and saw a suggestion of having cargo call rustc with an explicit Cargo leptos controls the build, so we could simply pass it on there. |
Summary of discord exchange
Full error mesage
file list from a cargo build on linux:
file list from a cargo build on windows:
rust-lang/cargo#8519
so the pdb is the debug info for the .exe
and for the .dll
so yeah, confirmed cargo bug
not sure why the linux version outputs lib prefixed files
but the windows one doesn't
The text was updated successfully, but these errors were encountered: