From 59bd0702912beb5ec1032b99590b0ebc0bfae134 Mon Sep 17 00:00:00 2001 From: Oliver James Date: Wed, 16 Oct 2024 14:06:28 +0100 Subject: [PATCH] Projucer: Disable AAX builds for Windows ARM --- .../Source/ProjectSaving/jucer_ProjectExport_MSVC.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h index 18fc4b4974..c371155ea6 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h @@ -337,6 +337,12 @@ public: bool isFastMathEnabled() const { return fastMathValue.get(); } bool isPluginBinaryCopyStepEnabled() const { return pluginBinaryCopyStepValue.get(); } + static bool shouldBuildTarget (build_tools::ProjectType::Target::Type targetType, Architecture arch) + { + return targetType != build_tools::ProjectType::Target::AAXPlugIn + || (arch != Architecture::arm64 && arch != Architecture::arm64ec); + } + //============================================================================== String createMSVCConfigName (Architecture arch) const { @@ -2087,7 +2093,7 @@ protected: out << "\t\t" << target->getProjectGuid() << "." << configName << "." << "ActiveCfg" << " = " << configName << newLine; - const auto shouldBuild = config.getArchitectures().contains (arch); + const auto shouldBuild = config.shouldBuildTarget (target->type, arch) && config.getArchitectures().contains (arch); if (shouldBuild) out << "\t\t" << target->getProjectGuid() << "." << configName << "." << "Build.0" << " = " << configName << newLine;