[libc-commits] [libc] [libc] Support configurable errno modes (PR #98287)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Thu Jul 11 21:15:31 PDT 2024


================
@@ -28,6 +28,13 @@ to learn about the defaults for your platform and target.
 * **"codegen" options**
     - ``LIBC_CONF_ENABLE_STRONG_STACK_PROTECTOR``: Enable -fstack-protector-strong to defend against stack smashing attack.
     - ``LIBC_CONF_KEEP_FRAME_POINTER``: Keep frame pointer in functions for better debugging experience.
+* **"errno" options**
+    - ``LIBC_CONF_ERRNO_MODE``: The implementation used for errno, acceptable values are:
----------------
petrhosek wrote:

I don't think JSON is particularly suited for multiline strings so I moved the explanation of different modes as comments to the implementation file.

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


More information about the libc-commits mailing list