This line changes the SCons env. This is a mutable object, so these changes are reflected outside the functions scope. This manifests when, for example, a log extension is set as default for all GSLab builders.
The solution is to copy the env inside the function and modify the copy.
This line changes the SCons
env
. This is a mutable object, so these changes are reflected outside the functions scope. This manifests when, for example, a log extension is set as default for all GSLab builders.The solution is to copy the
env
inside the function and modify the copy.