Skip to content

Commit d66be1b

Browse files
committed
[libunwind] Add Unwind-wasm.c to CMakeLists.txt
Even though we don't use `CMakeLists.txt`, `Unwind-wasm.c` needs to be included in the file to be a part of libunwind. Reflecting changes of llvm/llvm-project#67770.
1 parent c8a5acd commit d66be1b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

system/lib/libunwind/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ set(LIBUNWIND_C_SOURCES
2121
UnwindLevel1.c
2222
UnwindLevel1-gcc-ext.c
2323
Unwind-sjlj.c
24+
Unwind-wasm.c
2425
)
2526
set_source_files_properties(${LIBUNWIND_C_SOURCES}
2627
PROPERTIES

system/lib/libunwind/src/Unwind-wasm.c

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

13+
#ifdef __USING_WASM_EXCEPTIONS__
14+
1315
#include "config.h"
1416
#include "unwind.h"
1517
#include <stdbool.h>
1618
#include <threads.h>
1719

18-
#ifdef __USING_WASM_EXCEPTIONS__
19-
2020
_Unwind_Reason_Code __gxx_personality_wasm0(int version, _Unwind_Action actions,
2121
uint64_t exceptionClass,
2222
_Unwind_Exception *unwind_exception,

0 commit comments

Comments
 (0)