From 8f12a01d45cffda01afbd7f1455febdb6b57f124 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 16 Nov 2023 15:49:44 +0100 Subject: [PATCH] Alias `platform=web` SCons option to `platform=javascript` This makes build scripts forward-compatible, as was already done for other platforms that were renamed in 4.0. --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SConstruct b/SConstruct index 81d42a90ebb..97cefd50232 100644 --- a/SConstruct +++ b/SConstruct @@ -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