diff options
| author | Sam James <sam@gentoo.org> | 2025-03-19 21:45:01 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-03-19 21:45:29 +0000 |
| commit | 51e4a893ee0d303cbabc1870c78962487caa9b35 (patch) | |
| tree | 47a93eae138b77088b921317e7d842aabc388eb5 /dev-lang/mrustc/files/mrustc-0.11.2-no-glibcxx-assertions-workaround.patch | |
| parent | f99eb252f260200897f662991c2d2620fcd276b2 (diff) | |
| download | gentoo-51e4a893ee0d303cbabc1870c78962487caa9b35.tar.gz gentoo-51e4a893ee0d303cbabc1870c78962487caa9b35.tar.bz2 gentoo-51e4a893ee0d303cbabc1870c78962487caa9b35.zip | |
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>
Diffstat (limited to 'dev-lang/mrustc/files/mrustc-0.11.2-no-glibcxx-assertions-workaround.patch')
| -rw-r--r-- | dev-lang/mrustc/files/mrustc-0.11.2-no-glibcxx-assertions-workaround.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-lang/mrustc/files/mrustc-0.11.2-no-glibcxx-assertions-workaround.patch b/dev-lang/mrustc/files/mrustc-0.11.2-no-glibcxx-assertions-workaround.patch new file mode 100644 index 000000000000..516bca4ac13c --- /dev/null +++ b/dev-lang/mrustc/files/mrustc-0.11.2-no-glibcxx-assertions-workaround.patch @@ -0,0 +1,12 @@ +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) + { |
