Skip to content

Commit

Permalink
Added darwin_arm64 and updated linux_arm_* (#2)
Browse files Browse the repository at this point in the history
Add libftd2xx_darwin_arm64_v1.4.24.a so build is fixed on Macs M1/M2.

libftd2xx_darwin_amd64_v1.4.4.a => libftd2xx_darwin_amd64_v1.4.24.a
libftd2xx_linux_amd64_v1.4.24.a => libftd2xx_linux_amd64_v1.4.27.a
libftd2xx_linux_arm6hf_v1.4.24.a => libftd2xx_linux_arm6hf_v1.4.27.a
libftd2xx_linux_arm64_v1.4.24.a => libftd2xx_linux_arm8hf_v1.4.27.a
  • Loading branch information
conotto authored Oct 27, 2022
1 parent 86eb5ae commit 88633f6
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion d2xx_darwin_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
package d2xx

/*
#cgo LDFLAGS: -framework CoreFoundation -framework IOKit ${SRCDIR}/third_party/libftd2xx_darwin_amd64_v1.4.4.a
#cgo LDFLAGS: -framework CoreFoundation -framework IOKit ${SRCDIR}/third_party/libftd2xx_darwin_amd64_v1.4.24.a
*/
import "C"
13 changes: 13 additions & 0 deletions d2xx_darwin_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2022 The Periph Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.

//go:build cgo && !no_d2xx
// +build cgo,!no_d2xx

package d2xx

/*
#cgo LDFLAGS: -framework CoreFoundation -framework IOKit ${SRCDIR}/third_party/libftd2xx_darwin_arm64_v1.4.24.a
*/
import "C"
2 changes: 1 addition & 1 deletion d2xx_linux_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
package d2xx

/*
#cgo LDFLAGS: ${SRCDIR}/third_party/libftd2xx_linux_amd64_v1.4.24.a
#cgo LDFLAGS: ${SRCDIR}/third_party/libftd2xx_linux_amd64_v1.4.27.a
*/
import "C"
2 changes: 1 addition & 1 deletion d2xx_linux_arm.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ package d2xx
// optimal ARM architecture.

/*
#cgo LDFLAGS: ${SRCDIR}/third_party/libftd2xx_linux_arm6hf_v1.4.24.a
#cgo LDFLAGS: ${SRCDIR}/third_party/libftd2xx_linux_arm6hf_v1.4.27.a
*/
import "C"
2 changes: 1 addition & 1 deletion d2xx_linux_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
package d2xx

/*
#cgo LDFLAGS: ${SRCDIR}/third_party/libftd2xx_linux_arm64_v1.4.24.a
#cgo LDFLAGS: ${SRCDIR}/third_party/libftd2xx_linux_arm8hf_v1.4.27.a
*/
import "C"
Binary file added third_party/libftd2xx_darwin_amd64_v1.4.24.a
Binary file not shown.
Binary file removed third_party/libftd2xx_darwin_amd64_v1.4.4.a
Binary file not shown.
Binary file added third_party/libftd2xx_darwin_arm64_v1.4.24.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 88633f6

Please sign in to comment.