Skip to content

Commit

Permalink
poly1305, chacha20poly1305: fix build for Go 1.6
Browse files Browse the repository at this point in the history
Fixes golang/go#17424

Change-Id: I49d6e475c173da6a31542931d555ab87cc45a1c6
Reviewed-on: https://go-review.googlesource.com/30971
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
  • Loading branch information
bradfitz authored and agl committed Oct 12, 2016
1 parent 85ce60f commit 5f31782
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_amd64.go
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64
// +build amd64,go1.7

package chacha20poly1305

Expand Down
2 changes: 2 additions & 0 deletions chacha20poly1305/chacha20poly1305_amd64.s
Expand Up @@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build go1.7

#include "textflag.h"
// General register allocation
#define oup DI
Expand Down
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_noasm.go
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64
// +build !amd64 !go1.7

package chacha20poly1305

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_amd64.go
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine
// +build amd64,!gccgo,!appengine,go1.7

package poly1305

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_amd64.s
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build amd64,!gccgo,!appengine
// +build amd64,!gccgo,!appengine,go1.7

#include "textflag.h"

Expand Down
2 changes: 1 addition & 1 deletion poly1305/sum_ref.go
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !amd64,!arm gccgo appengine
// +build !amd64,!arm gccgo appengine !go1.7

package poly1305

Expand Down

0 comments on commit 5f31782

Please sign in to comment.