In recently merged
DM-3662 compiler version testing was done using OS tools with regular $PATH. This is inconsistent with other scons tools which reset PATH when executing actions.
We want to do two things:
- propagate PATH to the command execution
- Use scons tools to run "$CXX --version" instead of OS tools to keep things consistent