Skip to content
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

SCons: Fix SCU build regression on Windows #90450

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented Apr 9, 2024

#89452 made assumptions on comparing paths as strings which doesn't work when composing them as POSIX paths (/) but processing them on NT (\, \\).

This is more of a PoC of what needs to be done, we should get rid of any string comparisons and standardize everything around pathlib.Path, or os.path.join(), but not a mix of concatenating base + "/scu/" + tail and then trying to compare that to Windows paths, because we end up with stuff like this: C:\\Users\\Remi\\Dev\\Godot\\godot\\servers\\audio\\effects\\scu/scu_servers_audio_effects.gen.cpp and failing comparisons.

PR godotengine#89452 made assumptions on comparing paths as strings
which doesn't work when composing them as POSIX paths (`/`)
but processing them on NT (`\`, `\\`).
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the issue for me.

@akien-mga
Copy link
Member Author

I tested and confirmed that this change doesn't break SCU build for me on Linux.

@akien-mga akien-mga merged commit 6c57928 into godotengine:master Apr 9, 2024
15 checks passed
@akien-mga akien-mga deleted the scons-fix-scu-windows branch April 9, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't do SCU build on Windows
3 participants