The recent change in go.test causes the GO binding test to fail if libc++ is used to build LLVM. When LLVM is built against libc++, LLVM libraries, including those used in GO binding test have dependencies on libc++ and C++ STL signatures in these libraries are corresponding to libc++ implementation. Therefore, -stdlib=libc++ is required on the C++ compiler command for building GO binding test that links with these LLVM libraries. Fixed by using --cxxflags as part of the CGO_CXXFLAGS and CGO_LDFLAGS configuration. --cxxflags has -srdlib=libc++ if libc++ is used to build LLVM.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Revision no longer needed now that the GO binding test code has been reverted. Thanks!