obytelib icon indicating copy to clipboard operation
obytelib copied to clipboard

Workaround for bug with caml_sys_argv

Open lthls opened this issue 3 years ago • 0 comments

There's a hack in the compiler that miscompiles the caml_sys_argv primitive if it's declared as an external directly (it's supposed to be exposed through the "%sys_argv" builtin primitive, not directly). I'm not sure exactly why it never was an issue before, but I believe that without this patch trying to call the caml_sys_argv primitive through the generated Prim module will cause a segmentation fault.

lthls avatar Aug 17 '21 10:08 lthls