From 261db0e579846defa4460c444d34b9c7d726b900 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Wed, 16 Apr 2025 08:27:10 +0200 Subject: [PATCH] vst3 windows fix machine detection --- templates/vst3-make/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/vst3-make/Makefile b/templates/vst3-make/Makefile index 7b7654c..fe2000f 100644 --- a/templates/vst3-make/Makefile +++ b/templates/vst3-make/Makefile @@ -36,10 +36,11 @@ ifeq ($(OS), Windows_NT) VST3DIR_USER := $(subst \,/,$(LOCALAPPDATA))/Programs/Common/VST3 CC := gcc CXX := g++ - ifeq ($(shell $(CC) -dumpmachine), x86_64-w64-windows-gnu) + MACHINE := $(shell $(CC) -dumpmachine | sed 's:-.*::g') + ifeq ($(MACHINE), x86_64) VST3_PLATFORM := x86_64-win endif - ifeq ($(shell $(CC) -dumpmachine), aarch64-w64-windows-gnu) + ifeq ($(MACHINE), aarch64) VST3_PLATFORM := arm64-win endif else