From f0542ae07d5e5e4d311bf8ae33bf26b4b1acf9f4 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Thu, 5 Feb 2026 15:15:08 -0800 Subject: [PATCH] BaseTools/Source/C/Makefile: Update OBJECTS using OS specific SEP Use $(SEP) with addprefix of $(OBJDIR) to support Windows MINGW CLANG builds that use Windows path separators with GNU makefiles. This fixes Windows MINGW CLANG builds of the PcdValueInit application that is required for structured PCDs. Signed-off-by: Michael D Kinney --- BaseTools/Source/C/Makefiles/app.makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/C/Makefiles/app.makefile b/BaseTools/Source/C/Makefiles/app.makefile index 475cb88d04..2ce185cb9d 100644 --- a/BaseTools/Source/C/Makefiles/app.makefile +++ b/BaseTools/Source/C/Makefiles/app.makefile @@ -8,10 +8,11 @@ MAKEROOT ?= ../.. BUILDROOT ?= $(MAKEROOT) OBJDIR ?= . -OBJECTS := $(addprefix $(OBJDIR)/,$(OBJECTS)) include $(MAKEROOT)/Makefiles/header.makefile +OBJECTS := $(addprefix $(OBJDIR)$(SEP),$(OBJECTS)) + APPLICATION = $(BUILDROOT)/bin/$(APPNAME) .PHONY:all