Skip to content

Commit

Permalink
Fix ruby windows ucrt build (#31051)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn committed Sep 19, 2022
1 parent 27e5b4e commit d2b4f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruby/ext/grpc/extconf.rb
Expand Up @@ -86,7 +86,6 @@ def env_append(name, string)

env_append 'CPPFLAGS', '-DGPR_BACKWARDS_COMPATIBILITY_MODE'
env_append 'CPPFLAGS', '-DGRPC_XDS_USER_AGENT_NAME_SUFFIX="\"RUBY\""'
env_append 'CPPFLAGS', '-DGRPC_RUBY_WINDOWS_UCRT' if windows_ucrt

require_relative '../../lib/grpc/version'
env_append 'CPPFLAGS', '-DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"' + GRPC::VERSION + '\""'
Expand All @@ -111,6 +110,7 @@ def env_append(name, string)
exit 1 unless $? == 0
end

$CFLAGS << ' -DGRPC_RUBY_WINDOWS_UCRT' if windows_ucrt
$CFLAGS << ' -I' + File.join(grpc_root, 'include')

ext_export_file = File.join(grpc_root, 'src', 'ruby', 'ext', 'grpc', 'ext-export')
Expand Down

0 comments on commit d2b4f23

Please sign in to comment.