Merge pull request #635 from robertop/parallel-make

Makefile generation - Don't force serial compilation for all projects
This commit is contained in:
Tom van Dijck 2016-11-22 10:48:02 -08:00 committed by GitHub
commit f7d98519a8

View File

@ -144,8 +144,19 @@
_p('')
if kind == "workspace" then
_p('.NOTPARALLEL:')
_p('')
local haspch = false
for _, prj in ipairs(target.projects) do
for cfg in project.eachconfig(prj) do
if cfg.pchheader then
haspch = true
end
end
end
if haspch then
_p('.NOTPARALLEL:')
_p('')
end
end
make.defaultconfig(target)