diff options
author | Ricardo Cerqueira <ricardo@cyngn.com> | 2016-01-26 20:45:16 +0000 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2016-01-26 20:45:16 +0000 |
commit | bef525248abef56bea1e710fc39278484b537c22 (patch) | |
tree | 42bb30485574cdfe4e6c3dece9414aa85ae4b86c /core/binary.mk | |
parent | 947c4cdf1c7653b7aacafca38955234a5a33f364 (diff) | |
download | build-bef525248abef56bea1e710fc39278484b537c22.zip build-bef525248abef56bea1e710fc39278484b537c22.tar.gz build-bef525248abef56bea1e710fc39278484b537c22.tar.bz2 |
binary: Don't run protobuf header relocations if origin/target are the same
Change-Id: I3746746bdf1526674f345d884e2eccef85e946ef
Diffstat (limited to 'core/binary.mk')
-rw-r--r-- | core/binary.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/binary.mk b/core/binary.mk index 46fd492..88905d9 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -540,10 +540,11 @@ proto_generated_objects := $(addprefix $(proto_generated_obj_dir)/, \ define copy-proto-files $(if $(PRIVATE_PROTOC_OUTPUT), \ + $(if $(call streq,$(PRIVATE_PROTOC_INPUT),$(PRIVATE_PROTOC_OUTPUT)),, \ $(eval proto_generated_path := $(dir $(subst $(PRIVATE_PROTOC_INPUT),$(PRIVATE_PROTOC_OUTPUT),$@))) @mkdir -p $(dir $(proto_generated_path)) @echo "Protobuf relocation: $@ => $(proto_generated_path)" - @cp -f $@ $(proto_generated_path) ,) + @cp -f $@ $(proto_generated_path) ),) endef |