gentoo-ebuilds/dev-lang/mrustc/files/mrustc-0.11.2-no-glibcxx-assertions-workaround.patch
Sam James 51e4a893ee
dev-lang/mrustc: workaround failure on hardened (pass -U_GLIBCXX_ASSERTIONS)
I've not yet investigated or filed a bug upstream, sorry.

Signed-off-by: Sam James <sam@gentoo.org>
2025-03-19 21:45:29 +00:00

12 lines
565 B
Diff

We need this otherwise the built code will assert when building dev-lang/rust
later. Not yet reported upstream.
--- a/src/trans/codegen_c.cpp
+++ b/src/trans/codegen_c.cpp
@@ -1274,6 +1274,7 @@ namespace {
{
args.push_back( a.c_str() );
}
+ args.push_back("-U_GLIBCXX_ASSERTIONS"); // TODO
args.push_back("-Wno-psabi"); // Suppress "note: the ABI for passing parameters with 128-byte alignment has changed in GCC 4.6"
switch(opt.opt_level)
{