Skip to content

Commit 2097c61

Browse files
committed
Copy 386 to arm GOARCH
1. Golang doesn/t support windows/arm64 yet. 2. The 32-bit ARM Go binaries appears to compile and work on Windows 10 for ARM64 devices 3. 32-bit ARM binaries execute faster vs. x86 on ARM64, as they run native vs. over emulation layer. This commit duplicates 386 to arm code to make compiling windows/arm binaries possible. Testing so far, the 386 and ARMv7 structs proved compatible. Signed-off-by: Simon Rozman <[email protected]>
1 parent 9c48443 commit 2097c61

6 files changed

+6
-6
lines changed

oleacc_386.go oleacc_32.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build windows
5+
// +build windows,386 windows,arm
66

77
package win
88

oleacc_amd64.go oleacc_64.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build windows
5+
// +build windows,amd64
66

77
package win
88

oleaut32_386.go oleaut32_32.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build windows
5+
// +build windows,386 windows,arm
66

77
package win
88

oleaut32_amd64.go oleaut32_64.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build windows
5+
// +build windows,amd64
66

77
package win
88

shobj_386.go shobj_32.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build windows
5+
// +build windows,386 windows,arm
66

77
package win
88

shobj_amd64.go shobj_64.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build windows
5+
// +build windows,amd64
66

77
package win
88

0 commit comments

Comments
 (0)