SCons: Fix dlltool on Windows MinGW builds

- Expand `env.Run` function to accept optional command string, because we can't just call `env.Action` for some reason
This commit is contained in:
Thaddeus Crews 2025-08-18 18:49:50 -05:00
parent 42224bb750
commit d9a77a42ee
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
3 changed files with 32 additions and 48 deletions

View file

@ -603,10 +603,10 @@ def CommandNoCache(env, target, sources, command, **args):
return result
def Run(env, function):
def Run(env, function, comstr="$GENCOMSTR"):
from SCons.Script import Action
return Action(function, "$GENCOMSTR")
return Action(function, comstr)
def detect_darwin_toolchain_path(env):