We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8417871 commit 9972e16Copy full SHA for 9972e16
ruby/Rakefile
@@ -52,6 +52,12 @@ if RUBY_PLATFORM == "java"
52
end
53
else
54
Rake::ExtensionTask.new("protobuf_c", spec) do |ext|
55
+ unless RUBY_PLATFORM =~ /darwin/
56
+ # TODO: also set "no_native to true" for mac if possible. As is,
57
+ # "no_native" can only be set if the RUBY_PLATFORM doing
58
+ # cross-compilation is contained in the "ext.cross_platform" array.
59
+ ext.no_native = true
60
+ end
61
ext.ext_dir = "ext/google/protobuf_c"
62
ext.lib_dir = "lib/google"
63
ext.cross_compile = true
0 commit comments