summaryrefslogtreecommitdiff
path: root/contrib/depends/patches/native_mrustc
diff options
context:
space:
mode:
authormalik1004x <malikowskirobert@gmail.com>2025-07-11 06:27:50 +0200
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2025-07-13 15:31:13 +0200
commit670020c850da7af3f1a7fa6b00025a124979f465 (patch)
tree9eeeac3204ac1541df2adfd8b2676a455adc1a0c /contrib/depends/patches/native_mrustc
parent74e861aa4e27de802652602d72e2612b7046449c (diff)
Rust bootstrap support for macOS aarch64 (#143)
* darwin rust bootstrap support * add patches for darwin rust bootstrap
Diffstat (limited to 'contrib/depends/patches/native_mrustc')
-rw-r--r--contrib/depends/patches/native_mrustc/codegen_c.cpp.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/depends/patches/native_mrustc/codegen_c.cpp.patch b/contrib/depends/patches/native_mrustc/codegen_c.cpp.patch
new file mode 100644
index 0000000..b392636
--- /dev/null
+++ b/contrib/depends/patches/native_mrustc/codegen_c.cpp.patch
@@ -0,0 +1,17 @@
+--- a/src/trans/codegen_c.cpp 2025-07-08 00:17:10.022769383 +0200
++++ b/src/trans/codegen_c.cpp 2025-07-08 00:17:18.404645999 +0200
+@@ -1297,8 +1297,14 @@
+ // HACK: Work around [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117423] by disabling an optimisation stage
+ if( opt.opt_level > 0 )
+ {
++ #ifndef __clang__ // clang doesn't have this option.
+ args.push_back("-fno-tree-sra");
++ #endif
+ }
++ #ifdef __APPLE__
++ args.push_back("-framework");
++ args.push_back("Security");
++ #endif
+ if( opt.emit_debug_info )
+ {
+ args.push_back("-g"); \ No newline at end of file