wellington / go-libsass

Go wrapper for libsass, the only Sass 3.5 compiler for Go
http://godoc.org/github.com/wellington/go-libsass
Apache License 2.0
205 stars 28 forks source link

Can't build on macOS with Xcode 8.3 #46

Closed fordhurley closed 7 years ago

fordhurley commented 7 years ago

After upgrading Xcode to the latest version (8.3), I am unable to run the examples:

$ cd examples/basic
$ go run main.go
signal: killed
drewwells commented 7 years ago

Xcode 8.3 broke cgo, more info: https://github.com/golang/go/issues/19734

drewwells commented 7 years ago

The current workaround is go run -ldflags -s main.go

fordhurley commented 7 years ago

I had the feeling that was the case, but was surprised that I hadn't heard about that yet! Hopefully having this issue here saves someone a headache.

drewwells commented 7 years ago

amen, thanks for finding this! Not sure on next steps right now, but all the released binaries probably will fail on OS X with xcode 8.3 now.

drewwells commented 7 years ago

go 1.8.1 is out fixing this issue https://golang.org/doc/devel/release.html#go1.8.minor