Skip to content

Commit

Permalink
wip: do not strip so i can debug
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Nov 25, 2023
1 parent 2e5cbf0 commit 1dd7218
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/rcd_test/ext/mri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@

create_makefile("rcd_test/rcd_test_ext")

# exercise the strip command - this approach borrowed from grpc
strip_tool = RbConfig::CONFIG['STRIP']
strip_tool += ' -x' if RUBY_PLATFORM =~ /darwin/
File.open('Makefile.new', 'w') do |o|
o.puts 'hijack: all strip'
o.puts
o.write(File.read('Makefile'))
o.puts
o.puts 'strip: $(DLLIB)'
o.puts "\t$(ECHO) Stripping $(DLLIB)"
o.puts "\t$(Q) #{strip_tool} $(DLLIB)"
end
File.rename('Makefile.new', 'Makefile')
# # exercise the strip command - this approach borrowed from grpc
# strip_tool = RbConfig::CONFIG['STRIP']
# strip_tool += ' -x' if RUBY_PLATFORM =~ /darwin/
# File.open('Makefile.new', 'w') do |o|
# o.puts 'hijack: all strip'
# o.puts
# o.write(File.read('Makefile'))
# o.puts
# o.puts 'strip: $(DLLIB)'
# o.puts "\t$(ECHO) Stripping $(DLLIB)"
# o.puts "\t$(Q) #{strip_tool} $(DLLIB)"
# end
# File.rename('Makefile.new', 'Makefile')
end

0 comments on commit 1dd7218

Please sign in to comment.