File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_PLATFORM_ERRORS_H
10
10
#define LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_PLATFORM_ERRORS_H
11
11
12
- #if defined(__linux__) || defined(__Fuchsia__)
12
+ #if defined(__linux__) || defined(__Fuchsia__) || defined(__EMSCRIPTEN__)
13
13
#include " tables/linux_platform_errors.h"
14
14
#else
15
15
#include " tables/minimal_platform_errors.h"
Original file line number Diff line number Diff line change 41
41
#define LIBC_TARGET_ARCH_IS_ARM
42
42
#endif
43
43
44
+ #if defined(__wasm__)
45
+ #define LIBC_TARGET_ARCH_IS_WASM
46
+ #endif
47
+
44
48
#if defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64)
45
49
#define LIBC_TARGET_ARCH_IS_AARCH64
46
50
#endif
Original file line number Diff line number Diff line change
1
+ // ===-- Implementation of sigsetjmp ---------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+
9
+ #include " src/setjmp/sigsetjmp.h"
10
+ #include " hdr/offsetof_macros.h"
11
+ #include " src/__support/common.h"
12
+
13
+ namespace LIBC_NAMESPACE_DECL {
14
+ [[gnu::returns_twice]] int sigsetjmp (jmp_buf sigjmp_buf,
15
+ [[maybe_unused]] int savesigs) {
16
+ return setjmp (sigjmp_buf);
17
+ }
18
+ } // namespace LIBC_NAMESPACE_DECL
You can’t perform that action at this time.
0 commit comments