The icecream.py tool uses some generators to interpolate in the icecream environment variables. However, these generators rely on behavior that the Ninja builder disables, leading to a conflict.
There doesn't seem to be a real need to defer (or re-evaluate) the value of these variables, so using generators seems unwarranted.
We can just evaluate earlier, before the Ninja generator takes over.