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

@ -74,11 +74,7 @@ env.add_source_files(sources, common_win)
sources += res_obj
if env["accesskit"] and not env.msvc:
env["BUILDERS"]["DEF"].emitter = redirect_emitter
def_file = "uiautomationcore." + env["arch"] + ".def"
def_target = "libuiautomationcore." + env["arch"] + ".a"
def_obj = env.DEF(def_target, def_file)
sources += def_obj
sources += env.DEFLIB("uiautomationcore")
prog = env.add_program("#bin/godot", sources, PROGSUFFIX=env["PROGSUFFIX"])
arrange_program_clean(prog)