[libc-commits] [libc] [libc][uefi] add crt1 (PR #132150)
Tristan Ross via libc-commits
libc-commits at lists.llvm.org
Tue Apr 1 19:05:22 PDT 2025
================
@@ -0,0 +1,98 @@
+//===----------- UEFI implementation of error utils --------------*- C++-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC___SUPPORT_OSUTIL_UEFI_ERROR_H
+#define LLVM_LIBC_SRC___SUPPORT_OSUTIL_UEFI_ERROR_H
+
+#include "include/llvm-libc-types/EFI_STATUS.h"
+#include "src/__support/CPP/array.h"
+#include "src/__support/macros/config.h"
+#include <errno.h>
+#include <limits.h>
----------------
RossComputerGuy wrote:
Using `cpp::numeric_limits` causes me to run into this issue:
```
error: constexpr variable 'UEFI_STATUS_ERRNO_MAP' must be initialized by a constant expression
```
https://github.com/llvm/llvm-project/pull/132150
More information about the libc-commits
mailing list