I am trying to execute cgo code under ubuntu 14.04, it seems like cgo assume CC/CXX
to be gcc/g++
. And I need to explicitly specify CC/CXX
in order to use, say, clang. Can I configure default compiler used through go's build constraints?
Thanks!