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 /src | |
parent | d899dce5e1e356ff3e7ba6b595bdad87ec476fb6 (diff) |
Allowing for debug builds.
Diffstat (limited to 'src')
-rw-r--r-- | src/ruby/ext/grpc/extconf.rb | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/ruby/ext/grpc/extconf.rb b/src/ruby/ext/grpc/extconf.rb index 3e01820a7b..9fad5b9904 100644 --- a/src/ruby/ext/grpc/extconf.rb +++ b/src/ruby/ext/grpc/extconf.rb @@ -116,16 +116,17 @@ create_makefile(output) strip_tool = RbConfig::CONFIG['STRIP'] -File.open('Makefile.new', 'w') do |o| - o.puts 'hijack: all strip' - o.puts - File.foreach('Makefile') do |i| - o.puts i +if grpc_config == 'opt' + File.open('Makefile.new', 'w') do |o| + o.puts 'hijack: all strip' + o.puts + File.foreach('Makefile') do |i| + o.puts i + end + o.puts + o.puts 'strip:' + o.puts "\t$(ECHO) Stripping $(DLLIB)" + o.puts "\t$(Q) #{strip_tool} $(DLLIB)" end - o.puts - o.puts 'strip:' - o.puts "\t$(ECHO) Stripping $(DLLIB)" - o.puts "\t$(Q) #{strip_tool} $(DLLIB)" + File.rename('Makefile.new', 'Makefile') end - -File.rename('Makefile.new', 'Makefile') |