[clang] Multilib support for libraries with exceptions (PR #75031)
Dominik Wójt via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 02:18:26 PST 2024
================
@@ -264,6 +273,14 @@ 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");
+
+ if (getExceptionsMode() == ToolChain::ExceptionsMode::EM_Disabled)
+ Result.push_back("-fno-exceptions");
----------------
domin144 wrote:
And a positive one here, too?
https://github.com/llvm/llvm-project/pull/75031
More information about the cfe-commits
mailing list