Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile/cmd/gomobile: c++ library on mac #12948
and it turns out that "by default" darwinArmEnv and darwinArm64Env use libc++ library, while darwinAmd64Env use libstdc++.
the following workaround works for me:
I think it is better to allow CXXFLAGS can be passed when build.
if we keep libc++ as default, we need to document somewhere which tells that we always need to use
@crawshaw I will send a CL and also think how to add a unittest. Is it ok to add a test by linking cgo and gomobile? In my case, I use https://github.com/jmhodges/levigo and https://github.com/google/leveldb