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
When env.subst is called with positional arguments only, they are interpreted in order as string, raw, target, source, conv, executor. Thus, the targets value will be interpreted by subst as being raw, and the sources value will be target. Issuing those as keyword arguments fixes the problem:
This must not be exercised by a test, since we're not seeing a problem - contribution of a small test case that shows breakage would help move a change along.
This information is collected from the discord thread at
https://discord.com/channels/571796279483564041/1262451038435414027
Filing this to make sure it's captured, I did not discover it.
In the ninja tool, in the file
SCons/Tool/ninja/Utils.py
, we can see the following code snippet in thegenerate_command
function:When
env.subst
is called with positional arguments only, they are interpreted in order asstring, raw, target, source, conv, executor
. Thus, thetargets
value will be interpreted by subst as beingraw
, and thesources
value will betarget
. Issuing those as keyword arguments fixes the problem:This must not be exercised by a test, since we're not seeing a problem - contribution of a small test case that shows breakage would help move a change along.
Code link for this:
scons/SCons/Tool/ninja/Utils.py
Line 367 in 7313377
The text was updated successfully, but these errors were encountered: