mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 18:09:42 -05:00
Merge topic 'pch_job_pool'
97c124e30fNinja: Add a separate job pool for PCH creationebd0b16ddbvim: Add target_precompile_headers command highlighting Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !4224
This commit is contained in:
@@ -1196,6 +1196,13 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement(
|
||||
this->addPoolNinjaVariable("JOB_POOL_COMPILE", this->GetGeneratorTarget(),
|
||||
vars);
|
||||
|
||||
if (!pchSource.empty() && !source->GetProperty("SKIP_PRECOMPILE_HEADERS")) {
|
||||
if (source->GetFullPath() == pchSource) {
|
||||
this->addPoolNinjaVariable("JOB_POOL_PRECOMPILE_HEADER",
|
||||
this->GetGeneratorTarget(), vars);
|
||||
}
|
||||
}
|
||||
|
||||
this->SetMsvcTargetPdbVariable(vars, config);
|
||||
|
||||
objBuild.RspFile = objectFileName + ".rsp";
|
||||
|
||||
@@ -513,6 +513,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
|
||||
this->GetType() != cmStateEnums::UTILITY) {
|
||||
initProp("JOB_POOL_COMPILE");
|
||||
initProp("JOB_POOL_LINK");
|
||||
initProp("JOB_POOL_PRECOMPILE_HEADER");
|
||||
}
|
||||
|
||||
if (impl->TargetType <= cmStateEnums::UTILITY) {
|
||||
|
||||
Reference in New Issue
Block a user