From b5d7f944b392be5ade7a748588442ed78e582656 Mon Sep 17 00:00:00 2001 From: Roberto Perpuly Date: Tue, 22 Nov 2016 07:44:03 -0800 Subject: [PATCH] Makefile generation - Don't force serial compilation for all projects Only restrict parallel compilation when using precompiled headers. Currently, the generated makefile has a `.NOTPARALLEL` target, which means that make will ignore parallel builds, even for projects which can build in parallel just fine. --- src/actions/make/_make.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/actions/make/_make.lua b/src/actions/make/_make.lua index c2d615b0..f13bdbbc 100644 --- a/src/actions/make/_make.lua +++ b/src/actions/make/_make.lua @@ -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)