aboutsummaryrefslogtreecommitdiffhomepage
path: root/gRPC-Core.podspec
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2017-08-15 14:02:03 -0700
committerGravatar GitHub <noreply@github.com>2017-08-15 14:02:03 -0700
commite60c0f82b55310efae040534541f5a6acec28aba (patch)
tree4264d7fb0354a1395286f8d1a6e23c300073e90b /gRPC-Core.podspec
parent30b4e74296e612ee404707c8b61b4fc11ba6aadc (diff)
parent43c4710a809fa2e4c30f2cdef2c56a70518974e1 (diff)
Merge pull request #11714 from muxi/port-11712
Port #11712: Fix the nanopb's header include issue
Diffstat (limited to 'gRPC-Core.podspec')
-rw-r--r--gRPC-Core.podspec5
1 files changed, 5 insertions, 0 deletions
diff --git a/gRPC-Core.podspec b/gRPC-Core.podspec
index 4b1a8f38a3..ffdbd88f15 100644
--- a/gRPC-Core.podspec
+++ b/gRPC-Core.podspec
@@ -994,4 +994,9 @@ Pod::Spec.new do |s|
'test/core/util/port.c',
'test/core/util/port_server_client.{c,h}'
end
+
+ # TODO (mxyan): Instead of this hack, add include path "third_party" to C core's include path?
+ s.prepare_command = <<-END_OF_COMMAND
+ find src/core/ -type f -exec sed -E -i '.back' 's;#include "third_party/nanopb/(.*)";#include <nanopb/\\1>;g' {} \\\;
+ END_OF_COMMAND
end