From 8905e7cbb7c95f690a95458087f52d6307b9e8eb Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 23 Oct 2019 20:47:26 +0300 Subject: [PATCH] wscript: fix stdin input wasn't enabled for dedicated. Fix single-binary help string --- engine/wscript | 3 ++- wscript | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/wscript b/engine/wscript index 6a64d981..190c2cbf 100644 --- a/engine/wscript +++ b/engine/wscript @@ -39,7 +39,8 @@ def configure(conf): conf.options.USE_SELECT = conf.options.DEDICATED conf.define_cond('SINGLE_BINARY', conf.env.SINGLE_BINARY) - conf.define_cond('XASH_USE_SELECT', conf.options.USE_SELECT) + + conf.define_cond('XASH_USE_SELECT', conf.options.USE_SELECT or conf.options.DEDICATED) conf.define_cond('SUPPORT_BSP2_FORMAT', conf.options.SUPPORT_BSP2_FORMAT) conf.define_cond('XASH_64BIT', conf.env.DEST_SIZEOF_VOID_P != 4) conf.define_cond('DBGHELP', conf.env.DEST_OS == 'win32') diff --git a/wscript b/wscript index fda78bf0..15447391 100644 --- a/wscript +++ b/wscript @@ -47,7 +47,7 @@ def options(opt): help = 'build Xash Dedicated Server [default: %default]') grp.add_option('--single-binary', action = 'store_true', dest = 'SINGLE_BINARY', default = False, - help = 'build single "xash" binary [default: %default]') + help = 'build single "xash" binary (always enabled for dedicated) [default: %default]') grp.add_option('-8', '--64bits', action = 'store_true', dest = 'ALLOW64', default = False, help = 'allow targetting 64-bit engine(Linux/Windows/OSX x86 only) [default: %default]')