From a803c0340a54a97ed4b20cdd968f09b2b376b484 Mon Sep 17 00:00:00 2001 From: Alexander Polcyn Date: Tue, 6 Mar 2018 16:16:57 -0800 Subject: Remove source code and the grpc_c.so file that was built as a local binary from the ruby binary packages --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 1eac37dc55..0068a3b8e4 100755 --- a/Rakefile +++ b/Rakefile @@ -23,6 +23,12 @@ end # Add the extension compiler task Rake::ExtensionTask.new('grpc_c', spec) do |ext| + unless RUBY_PLATFORM =~ /darwin/ + # TODO: also set "no_native to true" for mac if possible. As is, + # "no_native" can only be set if the RUBY_PLATFORM doing + # cross-compilation is contained in the "ext.cross_platform" array. + ext.no_native = true + end ext.source_pattern = '**/*.{c,h}' ext.ext_dir = File.join('src', 'ruby', 'ext', 'grpc') ext.lib_dir = File.join('src', 'ruby', 'lib', 'grpc') -- cgit v1.2.3