From ab499d509595c854276fad9113e98f64eb0b76ba Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 11 Aug 2024 18:08:20 +0300 Subject: [PATCH] scripts: waifulib: vgui: fix vgui_support getting automatically enabled on x86 machines with unsupported OS --- scripts/waifulib/vgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/waifulib/vgui.py b/scripts/waifulib/vgui.py index d36e4658..c0c204cb 100644 --- a/scripts/waifulib/vgui.py +++ b/scripts/waifulib/vgui.py @@ -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