carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Fix linking to not look for a system libstdc++. #4060

Closed chandlerc closed 1 week ago

chandlerc commented 1 week ago

Not sure what changed (I think an upstream LLVM change, but maybe a Linux distro change), but several folks have been running into problems finding a standard C++ library when running the Carbon link step. It was actually breaking our example build when LLD didn't find the right libstdc++ install, but it finds one reliably on our build bots and sometimes for some of the developers.

For now, just remove the C++ standard library from the link. We're not doing that level of interop, and the plan is really to do that not with the system standard C++ library but by building and bundling libc++ with the installed toolchain.

Left a comment explaining what's going on here.