瀏覽代碼

Add appengine and noasm build tags.

The general suggestion to use a noasm tag is by Klaus Post at
https://groups.google.com/d/msg/golang-dev/CeKX81B3WdQ/2mq-eY0VAgAJ
Nigel Tao 9 年之前
父節點
當前提交
3588d1dd84
共有 3 個文件被更改,包括 5 次插入1 次删除
  1. 2 0
      decode_amd64.go
  2. 2 0
      decode_amd64.s
  3. 1 1
      decode_other.go

+ 2 - 0
decode_amd64.go

@@ -2,7 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !appengine
 // +build gc
+// +build !noasm
 
 package snappy
 

+ 2 - 0
decode_amd64.s

@@ -2,7 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !appengine
 // +build gc
+// +build !noasm
 
 #include "textflag.h"
 

+ 1 - 1
decode_other.go

@@ -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 !gc
+// +build !amd64 appengine !gc noasm
 
 package snappy