Skip to content

Instantly share code, notes, and snippets.

@nicksieger
Created September 25, 2024 21:48
Show Gist options
  • Save nicksieger/03bf346d3a8b63c5f822993b897da418 to your computer and use it in GitHub Desktop.
Save nicksieger/03bf346d3a8b63c5f822993b897da418 to your computer and use it in GitHub Desktop.
Patch to build ruby-3.0.x on Sequoia
--- ext/bigdecimal/bigdecimal.c.orig 2024-09-25 16:24:50
+++ ext/bigdecimal/bigdecimal.c 2024-09-25 16:25:15
@@ -65,7 +65,7 @@
static ID id_half;
/* MACRO's to guard objects from GC by keeping them in stack */
-#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0
+#define ENTER(n) volatile VALUE vStack[n];int iStack=0
#define PUSH(x) (vStack[iStack++] = (VALUE)(x))
#define SAVE(p) PUSH((p)->obj)
#define GUARD_OBJ(p,y) ((p)=(y), SAVE(p))
@Taimoor2500
Copy link

Hi nick i am trying to install ruby 3.0.2 on mac os sequia 15.1 can you tell how to run this patch?

@Taimoor2500
Copy link

Thanks @tritraneh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment