aboutsummaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
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.