You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
building with SCons on Master does not respect linkflags in the command line anymore (4.3 is not a problem).
Thats the build command I use: scons dev_build=yes use_mingw=yes use_llvm=yes dev_mode=yes compiledb=yes linkflags="-Wl,-pdb=" ccflags="-g -gcodeview"
And it does not add the linkflags anymore.
Adding a linkflag parameter before is ignored and after not.
As this was already there in 4.3, I cannot exactly tell what brought up the behavior in the current master.
The env.Tool("mingw") added in this PR in the setup function resets flags, and then it just manually reparses 2 of the potential user-defined flags but not linkflags.
I'd question whether this change was necessary, this PR seems to add a number of hacks. (Not that it wasn't hacky before, but at least those were battle-tested hacks :P)
Tested versions
Reproducible: Master
Not Reproducible: 4.3
System information
Godot v4.4.dev (bb22257) - Windows 11 (build 22631) - Multi-window, 3 monitors - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 4070 (NVIDIA; 32.0.15.6603) - AMD Ryzen 7 3700X 8-Core Processor (16 threads)
Issue description
Hey,
building with SCons on Master does not respect linkflags in the command line anymore (4.3 is not a problem).
Thats the build command I use:
scons dev_build=yes use_mingw=yes use_llvm=yes dev_mode=yes compiledb=yes linkflags="-Wl,-pdb=" ccflags="-g -gcodeview"
And it does not add the linkflags anymore.
I could narrow it down to
godot/SConstruct
Line 616 in 1aaf20b
Adding a linkflag parameter before is ignored and after not.
As this was already there in 4.3, I cannot exactly tell what brought up the behavior in the current master.
Steps to reproduce
Add
env.Append(LINKFLAGS=["-Whatever"])
before:godot/SConstruct
Line 616 in 1aaf20b
It is removed.
Add
env.Append(LINKFLAGS=["-Whatever"])
after the line and it is added.Minimal reproduction project (MRP)
The text was updated successfully, but these errors were encountered: