scripts: waifulib: vgui: fix vgui_support getting automatically enabled on x86 machines with unsupported OS

This commit is contained in:
Alibek Omarov 2024-08-11 18:08:20 +03:00
parent a5f7027229
commit ab499d5095
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def options(opt):
@conf
def check_vgui(conf):
if conf.env.DEST_CPU == 'x86' or (conf.env.DEST_CPU == 'x86_64' and not conf.options.ALLOW64):
if conf.env.DEST_CPU == 'x86' or (conf.env.DEST_CPU == 'x86_64' and conf.env.DEST_SIZEOF_VOID_P == 4):
vgui_dest_cpu = 'x86' # link with 32-bit binary when crosscompiling to 32-bit
else: vgui_dest_cpu = conf.env.DEST_CPU