Skip to content

Commit 8ebd226

Browse files
authored
[libunwind] Add Unwind-wasm.c to CMakeLists.txt (#67770)
This was missing when the file was added in 058222b. Also reordered some headers to make LLVM CI and clang-format happy.
1 parent 3f417a7 commit 8ebd226

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

libunwind/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ set(LIBUNWIND_C_SOURCES
1616
UnwindLevel1.c
1717
UnwindLevel1-gcc-ext.c
1818
Unwind-sjlj.c
19+
Unwind-wasm.c
1920
)
2021
set_source_files_properties(${LIBUNWIND_C_SOURCES}
2122
PROPERTIES

libunwind/src/Unwind-wasm.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "config.h"
14-
#include "unwind.h"
1513
#include <stdbool.h>
16-
#include <threads.h>
14+
15+
#include "config.h"
1716

1817
#ifdef __USING_WASM_EXCEPTIONS__
1918

19+
#include "unwind.h"
20+
#include <threads.h>
21+
2022
_Unwind_Reason_Code __gxx_personality_wasm0(int version, _Unwind_Action actions,
2123
uint64_t exceptionClass,
2224
_Unwind_Exception *unwind_exception,
@@ -118,4 +120,4 @@ _Unwind_GetRegionStart(struct _Unwind_Context *context) {
118120
return 0;
119121
}
120122

121-
#endif
123+
#endif // defined(__USING_WASM_EXCEPTIONS__)

0 commit comments

Comments
 (0)