if you try to link C++ object files with clang or gcc (as opposed to clang++ or g++) the result is undefined C++ symbols.
We should behave the same. Up until #10998
this was a non-issue since we were doing "on-demand" linking for all libraries.
This risks breaking certain users, so it might not be worth it.
The main upside would be that it would reduce the size of C programs build with MAIN_MODULE=1 .. (and be more consistent with existing toolchains).
if you try to link C++ object files with clang or gcc (as opposed to clang++ or g++) the result is undefined C++ symbols.
We should behave the same. Up until #10998
this was a non-issue since we were doing "on-demand" linking for all libraries.
This risks breaking certain users, so it might not be worth it.
The main upside would be that it would reduce the size of C programs build with MAIN_MODULE=1 .. (and be more consistent with existing toolchains).