diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2018-06-25 11:14:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 11:14:49 -0700 |
commit | f7ada1280fac4af717d478e6a9765d3f02b418b3 (patch) | |
tree | 0d7294325c0288daa4e91b4cd356f7ee3fcd3e2b /ruby/ext/google/protobuf_c | |
parent | 56d27530ab573d8c8a9808bff9542ca2e8a9291a (diff) | |
download | protobuf-f7ada1280fac4af717d478e6a9765d3f02b418b3.tar.gz protobuf-f7ada1280fac4af717d478e6a9765d3f02b418b3.tar.bz2 protobuf-f7ada1280fac4af717d478e6a9765d3f02b418b3.zip |
Build ruby gem on kokoro (#4819)
* Install rake compiler
* Add kokoro config to build ruby gem on linux
* Rename from linix to linux
* Fix prepare_build.sh name
* Clean up
* Install bundler
* Install bundler
* Use c99 in order to build gem on mingw-32 on ruby 2.0.0
See https://github.com/rake-compiler/rake-compiler-dock/issues/4
* Move c99 config to extcofig.rb
Diffstat (limited to 'ruby/ext/google/protobuf_c')
-rw-r--r-- | ruby/ext/google/protobuf_c/extconf.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/ext/google/protobuf_c/extconf.rb b/ruby/ext/google/protobuf_c/extconf.rb index 0886e607..cc097e11 100644 --- a/ruby/ext/google/protobuf_c/extconf.rb +++ b/ruby/ext/google/protobuf_c/extconf.rb @@ -2,7 +2,9 @@ require 'mkmf' -$CFLAGS += " -std=c99 -O3 -DNDEBUG" +unless RUBY_PLATFORM =~ /mswin|mingw/ + $CFLAGS += " -std=c99 -O3 -DNDEBUG" +end if RUBY_PLATFORM =~ /linux/ |