From 062623f2caa185cf6a88cfb1149a9a70992d0311 Mon Sep 17 00:00:00 2001 From: slipher Date: Thu, 9 Jul 2026 05:17:49 -0500 Subject: [PATCH] Fix scons build for non-Windows It required 'mingw_dir' to be set regardless of platform. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 05ddbaa69..a12bec51a 100755 --- a/SConstruct +++ b/SConstruct @@ -2354,7 +2354,7 @@ def MakeWindowsEnv(platform=None): # We use the GNU assembler (gas) on Windows so that we can use the # same .S assembly files on all platforms. Microsoft's assembler uses # a completely different syntax for x86 code. - mingw_dir = os.path.abspath(ARGUMENTS['mingw_dir']) + mingw_dir = os.path.abspath(ARGUMENTS.get('mingw_dir', 'You.must.provide.the.mingw_dir.argument')) windows_env['MINGW_BIN'] = os.path.join(mingw_dir, 'bin') windows_env['WINASM'] = os.path.join(windows_env['MINGW_BIN'], 'as.exe')