Skip to content

Commit

Permalink
chacha20poly1305: fix build constraints
Browse files Browse the repository at this point in the history
Similarly to https://go-review.googlesource.com/32311,
chacha20poly1305 needs additional build constraints
for non-standard toolchains.

Change-Id: I22816ef333c05450e9ab4debb3ce591518b6b84b
Reviewed-on: https://go-review.googlesource.com/32391
Run-TryBot: Alex Vaghin <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Adam Langley <[email protected]>
  • Loading branch information
Alex Vaghin authored and agl committed Oct 31, 2016
1 parent b2fa06b commit 9477e0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_amd64.go
Original file line number Diff line number Diff line change
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,go1.7
// +build go1.7,amd64,!gccgo,!appengine

package chacha20poly1305

Expand Down
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// This file was originally from https://golang.org/cl/24717 by Vlad Krasnov of CloudFlare.

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

#include "textflag.h"
// General register allocation
Expand Down
2 changes: 1 addition & 1 deletion chacha20poly1305/chacha20poly1305_noasm.go
Original file line number Diff line number Diff line change
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 !go1.7
// +build !amd64 !go1.7 gccgo appengine

package chacha20poly1305

Expand Down

0 comments on commit 9477e0b

Please sign in to comment.