1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Description: Work around gccgo bug (see golang.org/issue/15738)
github.com/golang/protobuf/proto having both internal and external tests
triggers a surprising bug in gccgo. As the bug only affects tests, it seems
reasonable to workaround it by not compiling the internal tests with gccgo.
Author: Michael Hudson-Doyle <michael.hudson@ubuntu.com>
Origin: vendor,
Bug: https://github.com/golang/protobuf/pull/186
Last-Update: 2016-05-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/proto/message_set_test.go
+++ b/proto/message_set_test.go
@@ -29,6 +29,11 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// This package having both internal and external tests triggers a surprising
+// bug in gccgo (see https://github.com/golang/go/issues/15738), so don't
+// compile the internal tests with gccgo:
+// +build !gccgo
+
package proto
import (
--- a/proto/size2_test.go
+++ b/proto/size2_test.go
@@ -29,6 +29,11 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// This package having both internal and external tests triggers a surprising
+// bug in gccgo (see https://github.com/golang/go/issues/15738), so don't
+// compile the internal tests with gccgo:
+// +build !gccgo
+
package proto
import (
|