Skip to content

Commit

Permalink
debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn committed Jan 13, 2023
1 parent 1accf47 commit f88d761
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ruby/ext/grpc/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
cross_compiling = ENV['RCD_HOST_RUBY_VERSION'] # set by rake-compiler-dock in build containers
# TruffleRuby uses the Sulong LLVM runtime, which is different from Apple's.
apple_toolchain = darwin && RUBY_ENGINE != 'truffleruby'
p "apolcyn ext darwin: |#{darwin}|"
p "apolcyn ext cross_compiling: |#{cross_compiling}|"
p "apolcyn ext RUBY_ENGINE: |#{RUBY_ENGINE}|"
p "apolcyn ext apple_toolchain: |#{apple_toolchain}|"

grpc_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))

Expand Down Expand Up @@ -174,6 +178,7 @@ def ext_export_filename()
strip_tool += ' -x' if apple_toolchain

if grpc_config == 'opt'
p "apolcyn ext adding strip to Makefile"
File.open('Makefile.new', 'w') do |o|
o.puts 'hijack: all strip'
o.puts
Expand Down
1 change: 1 addition & 0 deletions tools/run_tests/helper_scripts/build_ruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ cd "$(dirname "$0")/../../.."

rm -rf ./tmp
bundle exec rake compile
exit 1

# build grpc_ruby_plugin
mkdir -p cmake/build
Expand Down

0 comments on commit f88d761

Please sign in to comment.