Merge pull request #470 from improbable-io/bug-darwin-build-2

Fix build with bazel on OSX attempt 2 (add stub for host_cgo.go)
This commit is contained in:
shirou 2018-01-27 00:53:26 +09:00 committed by GitHub
commit bb09b4e7d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 1 deletions

5
host/host_cgo.go Normal file
View File

@ -0,0 +1,5 @@
// +build cgo
package host
import "C"

View File

@ -4,7 +4,7 @@
package host package host
// #cgo LDFLAGS: -framework IOKit // #cgo LDFLAGS: -framework IOKit
// #include "include/smc.c" // #include "smc.h"
import "C" import "C"
import "context" import "context"