summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-05-27 13:42:52 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-05-27 13:42:52 +0200
commit1772bb165787a6272dcc5bcbb7e869b6c17066df (patch)
treeef3b5a8a946f23d0c42a8ae640f3e5456b2f873d /SConstruct
parent86f9d1bf5e7a5edf5e6f23a51414f2c375cdd0be (diff)
Fix SCons automatic platform detection on Linux
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index b75ca24da6..17cf779d4a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -229,7 +229,7 @@ elif env_base['p'] != "":
else:
# Missing `platform` argument, try to detect platform automatically
if sys.platform.startswith('linux'):
- selected_platform = 'linux'
+ selected_platform = 'x11'
elif sys.platform == 'darwin':
selected_platform = 'osx'
elif sys.platform == 'win32':
@@ -239,7 +239,7 @@ else:
for x in platform_list:
print("\t" + x)
print("\nPlease run SCons again and select a valid platform: platform=<string>")
-
+
if selected_platform != "":
print("Automatically detected platform: " + selected_platform)
env_base["platform"] = selected_platform