[libc-commits] [libc] Implement `sigsetjmp` and `siglongjmp` for darwin/aarch64 (PR #139555)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu May 15 10:21:59 PDT 2025


================
@@ -0,0 +1,51 @@
+if(setjmp_config_options)
----------------
michaelrj-google wrote:

It looks like that's a flag controlled by the platform config, the top level config is here: https://github.com/llvm/llvm-project/blob/main/libc/config/config.json#L111

You can add a `config.json` to `config/darwin` with just that flag and it'll control that flag for just darwin, here's the one for baremetal as an example: https://github.com/llvm/llvm-project/blob/main/libc/config/baremetal/config.json

That way you don't have to modify the cmake at all

https://github.com/llvm/llvm-project/pull/139555


More information about the libc-commits mailing list