wscript: try to automatically set console subsystem flag depending on target features

Remove subsystem flag from shlibs and stlibs, it's only required for executables.
This commit is contained in:
Alibek Omarov
2024-11-27 15:34:49 +03:00
parent cb3f5a74a8
commit 0154ffa060
10 changed files with 14 additions and 18 deletions

View File

@@ -117,8 +117,7 @@ def build(bld):
bld.stlib(source = bld.path.ant_glob('*.c'),
target = 'public',
use = 'sdk_includes werror',
subsystem = bld.env.MSVC_SUBSYSTEM)
use = 'sdk_includes werror')
if bld.env.TESTS:
if bld.env.VALIDATE_TARGET:
@@ -127,7 +126,6 @@ def build(bld):
target = 'validate_target',
use = 'public',
defines = 'VALIDATE_TARGET="%s"' % bld.env.VALIDATE_TARGET,
subsystem = bld.env.CONSOLE_SUBSYSTEM,
install_path = None)
tests = {
@@ -145,5 +143,4 @@ def build(bld):
source = tests[i],
target = 'test_%s' % i,
use = 'public',
subsystem = bld.env.CONSOLE_SUBSYSTEM,
install_path = None)