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 <k_baldauf@apple.com>
This commit is contained in:
+2
-2
@@ -36,8 +36,8 @@ $(PROTOC):
|
|||||||
|
|
||||||
.PHONY: protoc-gen-swift
|
.PHONY: protoc-gen-swift
|
||||||
protoc-gen-swift:
|
protoc-gen-swift:
|
||||||
@$(SWIFT) build --product protoc-gen-swift
|
@$(SWIFT) build -c $(BUILD_CONFIGURATION) --product protoc-gen-swift
|
||||||
@$(SWIFT) build --product protoc-gen-grpc-swift-2
|
@$(SWIFT) build -c $(BUILD_CONFIGURATION) --product protoc-gen-grpc-swift-2
|
||||||
|
|
||||||
.PHONY: protos
|
.PHONY: protos
|
||||||
protos: $(PROTOC) protoc-gen-swift
|
protos: $(PROTOC) protoc-gen-swift
|
||||||
|
|||||||
Reference in New Issue
Block a user