【发布时间】:2019-05-22 06:37:09
【问题描述】:
我希望 make 即使依赖项的构建失败也能继续。我通常使用-i 来完成此操作。我的一位同事说他使用-k。事实上,这个堆栈溢出问题对每个问题都有一个答案:
Make: how to continue after a command fails?
这两个选项有区别吗?
make 手册页对这两个选项的说明如下:
-i, --ignore-errors
Ignore all errors in commands executed to remake files.
-k, --keep-going
Continue as much as possible after an error. While the
target that failed, and those that depend on it, cannot be
remade, the other dependencies of these targets can be
processed all the same.
-k 描述的是我认为-i 所做的。我确定我遗漏了一些东西:有人可以帮我理解其中的区别吗?
【问题讨论】:
标签: makefile