diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-29 01:46:19 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-29 01:46:19 +0100 |
commit | 1723044a12550341413c87480f839792d9b3fde0 (patch) | |
tree | 29afcdc18d718c8890e59866bdcf0f038b6cfa5f /Rakefile | |
parent | d899dce5e1e356ff3e7ba6b595bdad87ec476fb6 (diff) |
Allowing for debug builds.
Diffstat (limited to 'Rakefile')
-rwxr-xr-x | Rakefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -62,6 +62,10 @@ desc 'Build the gem file under rake_compiler_dock' task 'gem:windows' do require 'digest' require 'rake_compiler_dock' + + grpc_config = ENV['GRPC_CONFIG'] || 'opt' + V = ENV['V'] || '0' + version = Digest::SHA1.file('third_party/rake-compiler-dock/Dockerfile').hexdigest image_name = 'grpc/rake-compiler-dock:' + version cmd = "docker build -t #{image_name} third_party/rake-compiler-dock" @@ -69,7 +73,7 @@ task 'gem:windows' do system cmd exit 1 unless $? == 0 ENV['RAKE_COMPILER_DOCK_IMAGE'] = image_name - RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0" + RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0 GRPC_CONFIG=#{grpc_config} V=#{V}" end # Define dependencies between the suites. |