================
@@ -264,6 +273,15 @@ ToolChain::getMultilibFlags(const llvm::opt::ArgList
&Args) const {
break;
}
+ // Include fno-exceptions and fno-rtti
+ // to improve multilib selection
+ if (getRTTIMode() == ToolChain::RTTIMode::RM_Disabled) {
+ Result.push_back("-fno-rtti");
----------------
voltur01 wrote:
RTTI is required for exceptions support, e.g. a relevant discussion
https://stackoverflow.com/questions/10320072/is-there-a-relation-between-rtti-and-exceptions
Equally, we can update the title of the PR to reflect both options.
https://github.com/llvm/llvm-project/pull/75031
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits