Skip to content

Commit

Permalink
Alias platform=web SCons option to platform=javascript
Browse files Browse the repository at this point in the history
This makes build scripts forward-compatible, as was already done
for other platforms that were renamed in 4.0.
  • Loading branch information
Calinou committed Nov 16, 2023
1 parent e96c42f commit 8f12a01
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 8f12a01

Please sign in to comment.