Seems indeed useful to have a standard library module for that.
Could be based on stuff like this :
const output = staticExec("cc --version")`
when output.hasSomeProperty: ... # eg: check version > something
Run
const hasLTO = not staticExec("clang -flto --version").contains("error")
when hasLTO: ...
Run
