diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-03-27 23:51:14 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-03-28 18:20:37 +0100 |
commit | 59fbbdc4af3ca62a6c7ac415bd55d6daaf76e2ab (patch) | |
tree | 4900af7eca9c655ea3248aa5b5921a0ec5ada5b9 /SConstruct | |
parent | fcfffd729789cd80aa77056ca089697b52297d04 (diff) |
Alias `platform=x11` to `platform=linuxbsd` in SCons
This makes it possible for users to follow outdated documentation
and still get a working binary.
This closes #37367.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index ed4b3c6242..2a52529539 100644 --- a/SConstruct +++ b/SConstruct @@ -251,6 +251,14 @@ else: print("Automatically detected platform: " + selected_platform) env_base["platform"] = selected_platform +if selected_platform in ["linux", "bsd", "x11"]: + if selected_platform == "x11": + # Deprecated alias kept for compatibility. + print('Platform "x11" has been renamed to "linuxbsd" in Godot 4.0. ' + 'Building for platform "linuxbsd".') + # Alias for convenience. + selected_platform = "linuxbsd" + if selected_platform in platform_list: tmppath = "./platform/" + selected_platform sys.path.insert(0, tmppath) |