mesonbuild/meson

compiler.run() current working directory and cleanup

开放

#2,519 创建于 2017年10月22日

 (2 条评论) (0 个反应) (0 位负责人)Python (1,465 个派生)batch import
bugcompilershelp wanted

仓库指标

星标
 (4,978 个星标)
PR 合并指标
 (平均合并 139天 13小时) (30 天内合并 51 个 PR)

描述

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.

贡献者指南