Skip to content
Snippets Groups Projects
Commit a062a7f2 authored by Nicolas Noble's avatar Nicolas Noble Committed by GitHub
Browse files

Merge pull request #7551 from murgatroid99/ruby_tools_plugin_arg

Ruby Tools: automatically include plugin argument in protoc command
parents 92ebb5dc d8bc2232
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,17 @@ require 'rbconfig'
require_relative '../os_check'
protoc_name = 'protoc' + RbConfig::CONFIG['EXEEXT']
ext = RbConfig::CONFIG['EXEEXT']
protoc_path = File.join(File.dirname(__FILE__),
RbConfig::CONFIG['host_cpu'] + '-' + OS.os_name,
protoc_name)
protoc_name = 'protoc' + ext
exec([ protoc_path, protoc_path ], *ARGV)
plugin_name = 'grpc_ruby_plugin' + ext
protoc_dir = File.join(File.dirname(__FILE__),
RbConfig::CONFIG['host_cpu'] + '-' + OS.os_name)
protoc_path = File.join(protoc_dir, protoc_name)
plugin_path = File.join(protoc_dir, plugin_name)
exec([ protoc_path, protoc_path ], "--plugin=protoc-gen-grpc=#{plugin_path}", *ARGV)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment