Commit Graph

6079 Commits

Author SHA1 Message Date
Yilun Chong
14bc658175 fix python cpp kokoro build 2018-07-12 16:49:26 -07:00
Yilun Chong
f21d4d6830
Merge pull request #4903 from BSBandme/fix_js_build
fix commonjs js provide GOOGLE_CHECK
2018-07-12 15:45:17 -07:00
Duncan McGreggor
84752ff316 Added a link for another Clojure protobuf project (#4906) 2018-07-12 15:01:17 -07:00
Yilun Chong
a2618376f2 fix linux kokoro build in docker 2018-07-12 14:22:14 -07:00
Yilun Chong
f42ddff0dd fix commonjs js provide GOOGLE_CHECK 2018-07-12 13:47:16 -07:00
Paul Yang
22503a0172
fix for API change in PHP 7.3 (#4898) 2018-07-12 12:34:18 -07:00
Paul Yang
40f9ef2f56
Check the message to be encoded is the wrong type. (#4885) 2018-07-12 11:04:29 -07:00
Ben Webb
0a59054c30 Add Python 3.7 compatibility (#4862)
Compilation of Python wrappers fails with Python 3.7 because
the Python folks changed their C API such that
PyUnicode_AsUTF8AndSize() now returns a const char* rather
than a char*. Add a patch to work around. Relates #4086.
2018-07-12 10:58:10 -07:00
Jan Tattermusch
029dbfd714
Merge pull request #4869 from jtattermusch/csharp_artifact_build
Add scripts for automated building of C# nuget on Kokoro
2018-07-12 16:27:23 +02:00
Jan Tattermusch
f3d3bfc01e add scripts for automated building of C# nuget on Kokoro 2018-07-12 10:17:25 +02:00
Feng Xiao
e529d16283 Make ruby release configs consistent with protoc. 2018-07-11 18:09:37 -07:00
Feng Xiao
39aabeab54
Merge pull request #4899 from xfxyjwf/kokoro
Make ruby release configs consistent with protoc.
2018-07-11 17:42:06 -07:00
Feng Xiao
82019f90ff
Merge pull request #4900 from xfxyjwf/3.6.x
Add kokoro bazel configs to 3.6.x branch.
2018-07-11 17:39:34 -07:00
Feng Xiao
0e38f9ee1b Fix bazel build of examples. 2018-07-11 16:55:03 -07:00
Feng Xiao
b5975c109a Add kokoro bazel configs for 3.6.x branch. 2018-07-11 16:34:58 -07:00
Feng Xiao
5fa1f6b2e9 Make ruby release configs consistent with protoc. 2018-07-11 16:25:55 -07:00
Benjamin Barenblat
048f5c26a7 objectivec: Quash -Wself-assign and -Wvla (#4897)
* objectivec: Quash -Wself-assign

* objectivec: Set -Wno-vla when building

Objective-C protobuf uses VLAs for performance reasons. Ensure Clang
doesn’t complain about them.
2018-07-11 13:20:01 -04:00
Feng Xiao
237938ac6a
Merge pull request #4888 from chronoxor/master
OnShutdownDelete shadowing issue
2018-07-10 14:17:11 -07:00
Feng Xiao
5b03316153
Merge pull request #4889 from hesmar/hesmar/cmakeFixProtobufConfig
protobuf_generate(): add relative path to output dir
2018-07-10 14:15:53 -07:00
Markus Heß
93f6b67eb2 protobuf_generate(): add relative path to output dir
Without this fix, protobuf_generate() sets the variable _generated_srcs to
${protobuf_generate_PROTOC_OUT_DIR}/${_rel_dir}/${_basename}${_ext}
but generates the files in
${protobuf_generate_PROTOC_OUT_DIR}/${_basename}${_ext}
2018-07-10 18:23:53 +02:00
Ivan Shynkarenka
a3f0973979 OnShutdownDelete shadowing issue
https://github.com/google/protobuf/issues/4887
2018-07-10 13:19:51 +03:00
吕海涛
3beb19945b add JSON_UNESCAPED_UNICODE option (#4191) 2018-07-09 17:00:02 -07:00
Paul Yang
26eeec93e4
Enable ignoring unknown in json parsing in php (#4839)
* Enable ignoring unknown in json parsing in php

* Update generated descriptor files

* Update failure list for other languages.

* Remove unnecessary php files
2018-07-09 14:29:23 -07:00
Warren Falk
96833b8f4b implement IComparable and comparison operators on Timestamp (#4318) 2018-07-09 14:26:36 -07:00
Yilun Chong
5524c53e60
Merge pull request #4876 from BSBandme/fix_cpp_benchmark
Fix cpp benchmark dependency on mac
2018-07-09 13:57:55 -07:00
Feng Xiao
4a4a60bf93
Merge pull request #4880 from nashimus/3.6.x
Additional support for building and deploying ppcle_64 artifacts
2018-07-09 13:26:39 -07:00
Adam Cozzette
4129b6aaad
Merge pull request #4882 from google/3.6.x
Merge 3.6.x into master
2018-07-09 11:45:39 -07:00
BSBandme
82b490f6fd Fix cpp_distcheck 2018-07-09 11:37:39 -07:00
Adam Cozzette
e1845779ed
Merge pull request #4878 from acozzette/fix-msvc-initialization
Fix initialization with Visual Studio
2018-07-09 09:35:48 -07:00
Adam Cozzette
61476b8e74
Merge pull request #4879 from ejona86/protoc-artifacts-tls12
protoc-artifacts: Update centos base from 6.6 to 6.9
2018-07-09 09:32:17 -07:00
nashimus
1f7837a2ab
Additional support for building and deploying ppcle_64 artifacts 2018-07-06 20:03:25 -06:00
Eric Anderson
fa39467705 protoc-artifacts: Update centos base from 6.6 to 6.9
This avoids the need to use "yum update && yum upgrade" in the container
to be able to contact GitHub, which requires TLS 1.2[1].

I have verified that binaries built with this container still run in the
previous container; no errors like "/lib64/libc.so.6: version
`GLIBC_2.14' not found", which occur if using too new of a glibc when
compiling. CentOS 6.6 has glibc version 2.12 release 1.209.el6. CentOS
6.9 has glibc version 2.12 release 1.149.el6. Both would upgrade to
release 1.212.el6 via "yum update && yum upgrade".

1. https://githubengineering.com/crypto-deprecation-notice/
2018-07-06 17:37:52 -07:00
Adam Cozzette
458651fb44
Merge pull request #4877 from acozzette/update-docker-setup
Updated Docker setup to use GCC 4.8
2018-07-06 15:50:49 -07:00
Adam Cozzette
a9abc7831e Fix initialization with Visual Studio
It appears that Visual Studio does not work well with std::once_flag
because it has a bug causing it to initialize that during dynamic
initialization instead of constant initialization. This change works
around the problem by using function static initializers instead.

@gerben-s originally wrote this change for the Google-internal codebase
but I am just cherry-picking it here.

This fixes #4773.
2018-07-06 15:02:40 -07:00
Adam Cozzette
a651b77ffc
Merge pull request #4872 from demon386/master
Fix SFINAE in 'RepeatedPtrFieldBase::Add'
2018-07-06 14:56:25 -07:00
Adam Cozzette
65e76f5289 Updated Docker setup to use GCC 4.8
Now that we depend on C++11, we need at least GCC 4.8 instead of 4.7.
This change updates the Docker setup to continue using CentOS 6.6 but
with GCC 4.8.

I also added libm to the whitelist for dynamically linked libraries for
the ARM64 protoc binary.
2018-07-06 12:38:14 -07:00
BSBandme
a194ffae97 Fix cpp benchmark dependency on mac 2018-07-06 12:25:52 -07:00
M. Tong
8a1d02626f Fix SFINAE in 'RepeatedPtrFieldBase::Add'
Without this the error of un-moveable GenericTypeHandler will pop until
'TypeHandler::New(arena_, std::move(value))' is called.
2018-07-06 13:42:17 +08:00
Thomas Colthurst
79700b56b9 Update message_module.cc (#4835)
* Update message_module.cc

Add missing piece from pull request #4698:  actually initialize the new API object.

* Update message_module.cc
2018-07-03 13:52:27 -07:00
Feng Xiao
c522889038
Merge pull request #4863 from xfxyjwf/examples
Fix bazel build of examples.
2018-07-03 11:26:13 -07:00
Feng Xiao
1a7ce04be7 Fix bazel build of examples. 2018-07-03 11:00:15 -07:00
Feng Xiao
0c686d1576
Merge pull request #4856 from xfxyjwf/options
Add global extension registry to the repo.
2018-07-03 09:48:06 -07:00
Feng Xiao
ef7052b473 Add global extension registry to the repo. 2018-07-02 17:07:55 -07:00
Paul Yang
78ba021b84
Add continuous test for ruby 2.3, 2.4 and 2.5 (#4829)
* Add continuous test for ruby 2.3, 2.4 and 2.5

* Change ruby 2.5 to 2.5.0

* No need to provide argument to rb_funcall when argc is 0

* Fix tests for ruby 2.5

* Use rescue instead of assert_raise to accept subclass of error
2018-07-02 15:11:36 -07:00
Adam Cozzette
2c30fa71e7
Merge pull request #3981 from fahhem/patch-3
Handle srcs in generated files by cd'ing in and out
2018-07-02 15:08:12 -07:00
Joshua Haberman
59e04d80cc
Merge pull request #4321 from devwout/ruby_json_omit_repeated
Ruby JSON encoding omits zero-length repeated fields by default.
2018-07-02 14:00:05 -07:00
Joshua Haberman
0ea3d74c3d
Merge pull request #4299 from hekike/feat/add-commonjs-strict-import-style
Feat: add import-style=commonjs_strict option to the compiler
2018-07-02 13:58:42 -07:00
Joshua Haberman
e00266a74e
Merge pull request #3847 from FX-HAO/master
Google::Protobuf::Struct can access a missing key (#3846)
2018-07-02 13:56:25 -07:00
Adam Cozzette
e0579ac645
Merge pull request #4854 from nehaljwani/win-exports
Missing symbol exports for Windows DLL
2018-07-02 10:50:51 -07:00
Feng Xiao
00f118f0c3
Merge pull request #4847 from depristo/master
Remove write-strings warning from COPTs
2018-07-02 09:48:11 -07:00