diff options
author | Jakob Buchgraber <buchgr@google.com> | 2017-04-12 14:30:38 +0200 |
---|---|---|
committer | Jakob Buchgraber <buchgr@google.com> | 2017-04-14 14:06:29 +0200 |
commit | 5235d06159ba6fee412bee261ea7867d061252b0 (patch) | |
tree | d502ed5c8d15f750c8ca1eccc2cb929862dd0947 /third_party/protobuf/ruby/ext/google/protobuf_c/extconf.rb | |
parent | 5bf9e0f225b4c1636e24782ef9043e6201a65188 (diff) |
protobuf: Update protobuf to @laszlocsomor's master at commit 421d909.
Update protobuf to @laszlocsomor's fork of protobuf. This is essentially
the development version of protobuf 3.2.0 and windows specific fixes
from laszlo. Those fixes will be merged into protobuf soon:
https://github.com/google/protobuf/pull/2969).
For instructions on how to update protobuf for bazel see
README.bazel.md.
Change-Id: Ic1daafe30270cb6bcc6231e6c94fb670af0475e7
Diffstat (limited to 'third_party/protobuf/ruby/ext/google/protobuf_c/extconf.rb')
-rw-r--r-- | third_party/protobuf/ruby/ext/google/protobuf_c/extconf.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/protobuf/ruby/ext/google/protobuf_c/extconf.rb b/third_party/protobuf/ruby/ext/google/protobuf_c/extconf.rb new file mode 100644 index 0000000000..0886e60708 --- /dev/null +++ b/third_party/protobuf/ruby/ext/google/protobuf_c/extconf.rb @@ -0,0 +1,17 @@ +#!/usr/bin/ruby + +require 'mkmf' + +$CFLAGS += " -std=c99 -O3 -DNDEBUG" + + +if RUBY_PLATFORM =~ /linux/ + # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper. + $LDFLAGS += " -Wl,-wrap,memcpy" +end + +$objs = ["protobuf.o", "defs.o", "storage.o", "message.o", + "repeated_field.o", "map.o", "encode_decode.o", "upb.o", + "wrap_memcpy.o"] + +create_makefile("google/protobuf_c") |