Makes linking the sanitizers follow the same logic as the rest of the
driver with respect to the static linking strategy for the C++ standard
library.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
---|---|---|
840 | This is correct. If GNU ld<2.25 compatibility is not needed, --push-state, -Bstatic, link, --pop-state |
Comment Actions
Ping (and adding some sanitizer folks)? I'd really love to stop building with this local patch....
clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
---|---|---|
840 | I'd prefer to keep this as-is because it matches exactly what the toolchain does elsewhere. If we want to drop support for older lds, we should update in both places. |
This is correct. If GNU ld<2.25 compatibility is not needed, --push-state, -Bstatic, link, --pop-state