Skip to content

Conversation

@Rinnegatamante
Copy link

This commit replaces the original Windows spawn fix when compiling for Android since it wasn't always working and could've lead to "Filename is too long" errors when linking godot-cpp with llvm-ar.

The new approach involves moving the arguments passed to llvm-ar into a temp file (this approach is very common and used widely on other projects using llvm-ar already) in combination with using short path for the toolchain path (this ensures that the path has no whitespaces which would lead to corrupted commands being generated by scons. This is particularly important since the default installation path for the Android SDK is in C:\Program Files (x86) which includes whitespaces.

@Rinnegatamante Rinnegatamante requested a review from a team as a code owner January 30, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant