aboutsummaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-01-29 01:46:19 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-01-29 01:46:19 +0100
commit1723044a12550341413c87480f839792d9b3fde0 (patch)
tree29afcdc18d718c8890e59866bdcf0f038b6cfa5f /Rakefile
parentd899dce5e1e356ff3e7ba6b595bdad87ec476fb6 (diff)
Allowing for debug builds.
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 89a253df43..02c98679e2 100755
--- a/Rakefile
+++ b/Rakefile
@@ -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.