在介子中指定忍者版本?

Specify ninja version in Meson?

我是 运行 初级 OS,它基于 Ubuntu 14.04LTS。 Ninja 的版本是 1.3.4。当 运行 介子时,我得到错误:

ninja: fatal: ninja version (1.3.4) incompatible with build file ninja_required_version version (1.5.1).

根据 http://www.mariocampos.io/blog/meson,-first-impressions/ 的说法,我可以通过获取更新版本的 Ninja 来解决这个问题。没关系,我可以做到。但是,我更喜欢保留软件包 repos 中的软件,所以我的问题是:

我可以告诉 Meson 生成不需要这么高版本的 Ninja 构建文件,还是 Meson 使用仅在 1.5.1 中可用的 Ninja 功能?

的确,正如您在介子 git 存储库中看到的那样,ninja minimum version was raised from 1.3.4 to 1.5.1 于 2014 年 12 月 3 日发布,原因如下:

To celebrate the new version of Ninja in Debian, start using the console pool.

一个解决方案是使用较旧的介子构建版本(基本上是 MAXIMUM 版本 0.21.0)。

Can I tell Meson to generate a Ninja build file that doesn't require such a high version

没有。这是 hard coded in the meson source code.

does Meson use Ninja features only available in 1.5.1?

是的。这是 the Console Pool.