[libunwind] Add Unwind-wasm.c to CMakeLists.txt (#67770)
This was missing when the file was added in
058222b231.
Also reordered some headers to make LLVM CI and clang-format happy.
This commit is contained in:
@@ -16,6 +16,7 @@ set(LIBUNWIND_C_SOURCES
|
||||
UnwindLevel1.c
|
||||
UnwindLevel1-gcc-ext.c
|
||||
Unwind-sjlj.c
|
||||
Unwind-wasm.c
|
||||
)
|
||||
set_source_files_properties(${LIBUNWIND_C_SOURCES}
|
||||
PROPERTIES
|
||||
|
||||
@@ -10,13 +10,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "config.h"
|
||||
#include "unwind.h"
|
||||
#include <stdbool.h>
|
||||
#include <threads.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef __USING_WASM_EXCEPTIONS__
|
||||
|
||||
#include "unwind.h"
|
||||
#include <threads.h>
|
||||
|
||||
_Unwind_Reason_Code __gxx_personality_wasm0(int version, _Unwind_Action actions,
|
||||
uint64_t exceptionClass,
|
||||
_Unwind_Exception *unwind_exception,
|
||||
@@ -118,4 +120,4 @@ _Unwind_GetRegionStart(struct _Unwind_Context *context) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // defined(__USING_WASM_EXCEPTIONS__)
|
||||
|
||||
Reference in New Issue
Block a user