diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-04-30 02:14:18 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-04-30 02:15:15 +0200 |
commit | 236b93937f21fdd1ba040326e61ded3dc8e6561a (patch) | |
tree | dd96af6c3e6975cb1622e949386d884ea3cce5ef | |
parent | 1f8b6da920799d3aaa6f4d17f87c0caf87b76b3e (diff) | |
download | protobuf-236b93937f21fdd1ba040326e61ded3dc8e6561a.tar.gz protobuf-236b93937f21fdd1ba040326e61ded3dc8e6561a.tar.bz2 protobuf-236b93937f21fdd1ba040326e61ded3dc8e6561a.zip |
Addressing concerns.
-rw-r--r-- | ruby/Rakefile | 10 |
1 files changed, 9 insertions, 1 deletions
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 |