Roger Chang has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/71318?usp=email )

Change subject: scons: Fix grpc protobuf actions
......................................................................

scons: Fix grpc protobuf actions

The change will fix the proto import issue and build issue with
--no-duplicate-sources options, more details please reference:
https://gem5-review.googlesource.com/c/public/gem5/+/64491.

Change-Id: I259413f7739f89598dcd42c3f2e1e865cec3de43
---
M src/SConscript
1 file changed, 3 insertions(+), 3 deletions(-)



diff --git a/src/SConscript b/src/SConscript
index 13f08d2..efc1477 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -280,9 +280,9 @@
     root, ext = os.path.splitext(source[0].get_abspath())
     return [root + '.grpc.pb.cc', root + '.grpc.pb.h'], source

-protoc_grpc_action=MakeAction('${PROTOC} --grpc_out ${BUILDDIR} '
-        '--plugin=protoc-gen-grpc=${PROTOC_GRPC} --proto_path ${BUILDDIR} '
-        '${SOURCE.get_abspath()}',
+protoc_grpc_action=MakeAction('${PROTOC} --grpc_out ${TARGET.dir.abspath} '
+ '--plugin=protoc-gen-grpc=${PROTOC_GRPC} --proto_path ${SOURCE.dir.abspath} '
+        '${SOURCE.abspath}',
         Transform("PROTOC"))

 env.Append(BUILDERS={'GrpcProtoBufCC' : Builder(

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/71318?usp=email To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I259413f7739f89598dcd42c3f2e1e865cec3de43
Gerrit-Change-Number: 71318
Gerrit-PatchSet: 1
Gerrit-Owner: Roger Chang <rogerycch...@google.com>
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org

Reply via email to