From 236b93937f21fdd1ba040326e61ded3dc8e6561a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 30 Apr 2016 02:14:18 +0200 Subject: Addressing concerns. --- ruby/Rakefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ruby/Rakefile') diff --git a/ruby/Rakefile b/ruby/Rakefile index 45694d1f..88a07a64 100644 --- a/ruby/Rakefile +++ b/ruby/Rakefile @@ -26,6 +26,8 @@ proto2_protos = %w[ genproto_output = [] +# We won't have access to .. from within docker, but the proto files +# will be there, thanks to the :genproto rule dependency for gem:native. unless ENV['IN_DOCKER'] == 'true' well_known_protos.each do |proto_file| input_file = "../src/" + proto_file @@ -65,7 +67,13 @@ else RakeCompilerDock.sh "bundle && IN_DOCKER=true rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.5:2.0.0" end - task 'gem:native' => [:genproto, 'gem:windows'] + if RUBY_PLATFORM =~ /darwin/ + task 'gem:native' do + system "rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.5:2.0.0" + end + else + task 'gem:native' => [:genproto, 'gem:windows'] + end end -- cgit v1.2.3