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

[3.x] Alias platform=web SCons option to platform=javascript #84978

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ if selected_platform in ["linux", "bsd", "linuxbsd"]:
# Alias for convenience.
selected_platform = "x11"

if selected_platform == "web":
# Alias for forward compatibility.
print('Platform "web" is still called "javascript" in Godot 3.x. Building for platform "javascript".')
selected_platform = "javascript"

# Make sure to update this to the found, valid platform as it's used through the buildsystem as the reference.
# It should always be re-set after calling `opts.Update()` otherwise it uses the original input value.
env_base["platform"] = selected_platform
Expand Down
Loading