Add 32-bit architecture support for prebuilt bindings #2
+169
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trying to elaborate on godot-rust/gdext#1444 and prepare ground for a proper fix.
Generate separate bindings for 32-bit and 64-bit targets to ensure correct layout tests on both architectures. This should fix compilation on wasm32 and other 32-bit platforms without runtime workarounds.
Targets supported:
Questions @Bromeon before I move further on this one, this PR renames stuff that was
_linux.rsto_linux_64.rsor_linux_32.rs. And generally speaking appends 32/64 to anything that was "just the default linux path" before. This is likely going to be a breaking change. My view on this is that it's safer to have explicit_64and_32when there could be a differnce. As opposed to_linux.rsis 64-bit implicitly and_linux_32.rsis here for the exceptional case we want 32-bit. But migration would be smoother if we were to just introduce_32.rsand keep the rest unchanged.TL;DR I am not sure about naming ;)