mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer (MSVC): Fix multi-arch PCH project generation
Co-authored-by: Ryaan Ahmed <ryaan.ahmed@bandlab.com>
This commit is contained in:
parent
243d3756fc
commit
522217d9c5
1 changed files with 24 additions and 24 deletions
|
|
@ -1350,14 +1350,13 @@ public:
|
|||
|
||||
auto& config = *static_cast<const MSVCBuildConfiguration*> (&*i);
|
||||
|
||||
for (const auto& arch : config.getArchitectures())
|
||||
{
|
||||
auto pchFileContent = config.getPrecompiledHeaderFileContent();
|
||||
|
||||
if (pchFileContent.isEmpty())
|
||||
continue;
|
||||
|
||||
auto pchFile = owner.getTargetFolder().getChildFile (config.getPrecompiledHeaderFilename()).withFileExtension (".h");
|
||||
auto pchFile = owner.getTargetFolder().getChildFile (config.getPrecompiledHeaderFilename())
|
||||
.withFileExtension (".h");
|
||||
|
||||
build_tools::writeStreamToFile (pchFile, [&] (MemoryOutputStream& mo)
|
||||
{
|
||||
|
|
@ -1380,10 +1379,11 @@ public:
|
|||
|
||||
auto* pchSourceElement = cpps.createNewChildElement ("ClCompile");
|
||||
pchSourceElement->setAttribute ("Include", prependDot (pchSourceFile.getFileName()));
|
||||
|
||||
for (const auto& arch : config.getArchitectures())
|
||||
setSourceFilePCHSettings (*pchSourceElement, pchFile, "Create", config, arch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void addFilesToCompile (const Project::Item& projectItem, XmlElement& cpps, XmlElement& headers, XmlElement& otherFiles) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue