wscript: remove hacky logic determening valid target when crosscompiling to 32-bit x86

This commit is contained in:
Alibek Omarov
2025-05-27 20:50:08 +03:00
parent f9a9aedea5
commit 78ef00a269
6 changed files with 19 additions and 35 deletions

View File

@@ -278,13 +278,8 @@ def configure(conf):
else:
force_32bit = conf.options.FORCE32
# FIXME: move this whole logic to force_32bit.py, and ensure
# DEST_SIZEOF_VOID_P is always set
if force_32bit:
Logs.info('WARNING: will build engine for 32-bit target')
conf.force_32bit(True)
else:
conf.env.DEST_SIZEOF_VOID_P = 4 if conf.check_32bit() else 8
conf.force_32bit()
cflags, linkflags = conf.get_optimization_flags()
cxxflags = list(cflags) # optimization flags are common between C and C++ but we need a copy