mesonbuild/meson
Voir sur GitHubcompiler.run() current working directory and cleanup
Open
#2 519 ouverte le 22 oct. 2017
bugcompilershelp wanted
Métriques du dépôt
- Stars
- (4 978 stars)
- Métriques de merge PR
- (Merge moyen 139j 13h) (51 PRs mergées en 30 j)
Description
I need to run code that writes files in compiler.run(). Turns out the current working directory is the same as for the meson (or ninja) invocation. If I don't manually clean up the generated files in the code being run, they're left behind.
I'd like to be able to pass the workdir to compiler.run() not unlike test() workdir, and/or have the code executed in a temporary directory that's automatically discarded afterwards. Having to do this yourself in a C or C++ code snippet is tedious at best.