1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

automatically detect BSDs as platform=linuxbsd

(cherry picked from commit 78cd0ffdba)
This commit is contained in:
Omar Polo
2021-08-09 13:11:53 +00:00
committed by Rémi Verschelde
parent f20a2d3da7
commit 6cc9333fe8

View File

@@ -195,7 +195,13 @@ elif env_base["p"] != "":
selected_platform = env_base["p"] selected_platform = env_base["p"]
else: else:
# Missing `platform` argument, try to detect platform automatically # Missing `platform` argument, try to detect platform automatically
if sys.platform.startswith("linux"): if (
sys.platform.startswith("linux")
or sys.platform.startswith("dragonfly")
or sys.platform.startswith("freebsd")
or sys.platform.startswith("netbsd")
or sys.platform.startswith("openbsd")
):
selected_platform = "x11" selected_platform = "x11"
elif sys.platform == "darwin": elif sys.platform == "darwin":
selected_platform = "osx" selected_platform = "osx"