Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
a21f2258
Unverified
Commit
a21f2258
authored
Apr 25, 2018
by
Jisi Liu
Committed by
GitHub
Apr 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4553 from pherl/ruby
Set ext.no_native = true for non mac platform
parents
8417871a
9972e160
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Rakefile
ruby/Rakefile
+6
-0
No files found.
ruby/Rakefile
View file @
a21f2258
...
...
@@ -52,6 +52,12 @@ if RUBY_PLATFORM == "java"
end
else
Rake
::
ExtensionTask
.
new
(
"protobuf_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
.
ext_dir
=
"ext/google/protobuf_c"
ext
.
lib_dir
=
"lib/google"
ext
.
cross_compile
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment