mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fixed exporter name not being written to console when saving via the cmd line
This commit is contained in:
parent
cb8a40d47c
commit
6814cc0b8d
2 changed files with 7 additions and 28 deletions
|
|
@ -733,7 +733,7 @@ void ProjectSaver::writeProjects (const OwnedArray<LibraryModule>& modules, Proj
|
|||
if (ProjucerApplication::getApp().isRunningCommandLine)
|
||||
saveExporter (*exporter, modules);
|
||||
else
|
||||
threadPool.addJob (new ExporterJob (*this, *exporter, modules), true);
|
||||
threadPool.addJob ([this, &exporter, &modules] { saveExporter (*exporter, modules); });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -806,8 +806,12 @@ void ProjectSaver::saveExporter (ProjectExporter& exporter, const OwnedArray<Lib
|
|||
|
||||
if (! exporter.isCLion())
|
||||
{
|
||||
auto exporterName = exporter.getUniqueName();
|
||||
MessageManager::callAsync ([exporterName] { std::cout << "Finished saving: " << exporterName << std::endl; });
|
||||
auto outputString = "Finished saving: " + exporter.getUniqueName();
|
||||
|
||||
if (MessageManager::getInstance()->isThisTheMessageThread())
|
||||
std::cout << outputString << std::endl;
|
||||
else
|
||||
MessageManager::callAsync ([outputString] { std::cout << outputString << std::endl; });
|
||||
}
|
||||
}
|
||||
catch (build_tools::SaveError& error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue