From f4757afa43dd8c4e218e31889aab849c56cd07bd Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Tue, 21 Jul 2026 17:48:11 -0700 Subject: [PATCH] Pass build config in when building protoc dependencies (#1972) - The protobuf makefile relies on being able to find the built protoc dependencies under the build directory. Since we were not passing the build configuration to the swift command to build those dependencies, the built binaries were going into the debug build folder. If make protos was run when `BUILD_CONFIGURATION=release`, then we'd fail to find the dependencies since the build folder should now be the release build folder. This PR fixes that. Signed-off-by: Kathryn Baldauf --- Protobuf.Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Protobuf.Makefile b/Protobuf.Makefile index 48844099..f082ab44 100644 --- a/Protobuf.Makefile +++ b/Protobuf.Makefile @@ -36,8 +36,8 @@ $(PROTOC): .PHONY: protoc-gen-swift protoc-gen-swift: - @$(SWIFT) build --product protoc-gen-swift - @$(SWIFT) build --product protoc-gen-grpc-swift-2 + @$(SWIFT) build -c $(BUILD_CONFIGURATION) --product protoc-gen-swift + @$(SWIFT) build -c $(BUILD_CONFIGURATION) --product protoc-gen-grpc-swift-2 .PHONY: protos protos: $(PROTOC) protoc-gen-swift