diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-31 09:57:07 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-31 09:58:28 +0100 |
commit | 0215d9025148af25b898d38aaf989d2a84730cf7 (patch) | |
tree | 48ba15ed66f89aa6823d36186baba73601bc4328 /Rakefile | |
parent | b0afda39638ab165c054e479889e29421e3c2a52 (diff) |
Last few improvements.
Diffstat (limited to 'Rakefile')
-rwxr-xr-x | Rakefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -66,6 +66,7 @@ task 'gem:windows' do V = ENV['V'] || '0' env = 'CPPFLAGS="-D_WIN32_WINNT=0x600 -DUNICODE -D_UNICODE" ' + env += 'LDFLAGS=-static ' env += 'SYSTEM=MINGW32 ' env += 'EMBED_ZLIB=true ' env += 'BUILDDIR=/tmp ' @@ -73,11 +74,11 @@ task 'gem:windows' do env_comp = 'CC=x86_64-w64-mingw32-gcc ' env_comp += 'LD=x86_64-w64-mingw32-gcc ' - docker_for_windows "#{env} #{env_comp} make #{out} && cp #{out} grpc_c.64.ruby" + docker_for_windows "#{env} #{env_comp} make -j #{out} && x86_64-w64-mingw32-strip -x -S #{out} && cp #{out} grpc_c.64.ruby" env_comp = 'CC=i686-w64-mingw32-gcc ' env_comp += 'LD=i686-w64-mingw32-gcc ' - docker_for_windows "#{env} #{env_comp} make #{out} && cp #{out} grpc_c.32.ruby" + docker_for_windows "#{env} #{env_comp} make -j #{out} && i686-w64-mingw32-strip -x -S #{out} && cp #{out} grpc_c.32.ruby" docker_for_windows "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 |