Avoid linux to be hard dependency on build

This commit is contained in:
Harshavardhana 2014-12-04 01:11:31 -08:00
parent a2e0a41f7e
commit 0c4dd8f5fa
6 changed files with 8 additions and 11 deletions

View File

@ -1,4 +1,4 @@
// +build linux,amd64
// +build amd64
package cpu

View File

@ -1,4 +1,4 @@
// +build linux,amd64
// +build amd64
package crc32c

View File

@ -14,12 +14,11 @@
* limitations under the License.
*/
// +build linux
// +build amd64
package erasure
// #cgo CPPFLAGS: -Iisal/include
// #cgo LDFLAGS: isal/isa-l.a
// #include <stdlib.h>
// #include <erasure-code.h>
// #include <stdlib.h>

View File

@ -14,12 +14,12 @@
* limitations under the License.
*/
// +build linux
// +build amd64
package erasure
// #cgo CPPFLAGS: -I./isal/include
// #cgo LDFLAGS: ./isal/isa-l.a
// #cgo CPPFLAGS: -Iisal/include
// #cgo LDFLAGS: isal/isa-l.a
// #include <stdlib.h>
// #include <erasure-code.h>
// #include <stdlib.h>

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
// +build linux
// amd64
// +build amd64
package signify

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
// +build linux
// amd64
// +build amd64
package split