Skip to content

Commit 09cded8

Browse files
committed
Merge pull request #10 from klauspost/disable-gccgo-build
Disable assembly build on gccgo.
2 parents 2c698c6 + 9374f1a commit 09cded8

8 files changed

Lines changed: 12 additions & 4 deletions

File tree

cpuid_386.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3+
// +build 386,!gccgo
4+
35
// func asmCpuid(op uint32) (eax, ebx, ecx, edx uint32)
46
TEXT ·asmCpuid(SB), 7, $0
57
XORL CX, CX

cpuid_amd64.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3+
//+build amd64,!gccgo
4+
35
// func asmCpuid(op uint32) (eax, ebx, ecx, edx uint32)
46
TEXT ·asmCpuid(SB), 7, $0
57
XORQ CX, CX

detect_intel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3-
// +build 386 amd64
3+
// +build 386,!gccgo amd64,!gccgo
44

55
package cpuid
66

detect_ref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3-
// +build !amd64,!386
3+
// +build !amd64,!386 gccgo
44

55
package cpuid
66

private/cpuid_386.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3+
// +build 386,!gccgo
4+
35
// func asmCpuid(op uint32) (eax, ebx, ecx, edx uint32)
46
TEXT ·asmCpuid(SB), 7, $0
57
XORL CX, CX

private/cpuid_amd64.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3+
//+build amd64,!gccgo
4+
35
// func asmCpuid(op uint32) (eax, ebx, ecx, edx uint32)
46
TEXT ·asmCpuid(SB), 7, $0
57
XORQ CX, CX

private/cpuid_detect_intel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3-
// +build 386 amd64
3+
// +build 386,!gccgo amd64,!gccgo
44

55
package cpuid
66

private/cpuid_detect_ref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
22

3-
// +build !amd64,!386
3+
// +build !amd64,!386 gccgo
44

55
package cpuid
66

0 commit comments

Comments
 (0)