Fix SCons automatic platform detection on Linux

This commit is contained in:
Hugo Locurcio 2019-05-27 13:42:52 +02:00
parent 86f9d1bf5e
commit 1772bb1657
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ elif 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'):
selected_platform = 'linux' selected_platform = 'x11'
elif sys.platform == 'darwin': elif sys.platform == 'darwin':
selected_platform = 'osx' selected_platform = 'osx'
elif sys.platform == 'win32': elif sys.platform == 'win32':
@ -239,7 +239,7 @@ else:
for x in platform_list: for x in platform_list:
print("\t" + x) print("\t" + x)
print("\nPlease run SCons again and select a valid platform: platform=<string>") print("\nPlease run SCons again and select a valid platform: platform=<string>")
if selected_platform != "": if selected_platform != "":
print("Automatically detected platform: " + selected_platform) print("Automatically detected platform: " + selected_platform)
env_base["platform"] = selected_platform env_base["platform"] = selected_platform