Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f297520b authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Steve Kondik
Browse files

binary: Don't run protobuf header relocations if origin/target are the same

Change-Id: I3746746bdf1526674f345d884e2eccef85e946ef
parent f8530d6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -674,10 +674,11 @@ $(call track-src-file-obj,$(proto_sources),$(proto_generated_objects))

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