• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..20-Jan-2022-

cmake/H20-Jan-2022-455407

docs/H03-May-2022-532211

include/H20-Jan-2022-2,1551,551

src/H03-May-2022-16,71113,955

test/H03-May-2022-541370

.clang-formatH A D16-Nov-202120 31

README_RUST_SGX.mdH A D16-Nov-2021891 2319

README_RUST_SGX.md

1# Libunwind customizations for linking with x86_64-fortanix-unknown-sgx Rust target.
2
3## Description
4### Initial Fork
5Initial Fork has been made from 5.0 release of llvm (commit: 6a075b6de4)
6### Detailed Description
7#### Header files that we do not include for this target
81. pthread.h
9#### Library that we do not link to for this target.
101. pthread (Locks used by libunwind is provided by rust stdlib for this target)
11
12## Building unwind for rust-sgx target
13### Generate Make files:
14* `cd where you want to build libunwind`
15* `mkdir build`
16* `cd build`
17* `cmake -DCMAKE_BUILD_TYPE="RELEASE" -DRUST_SGX=1 -G "Unix Makefiles" -DLLVM_ENABLE_WARNINGS=1 -DLIBUNWIND_ENABLE_PEDANTIC=0 -DLLVM_PATH=<path/to/llvm> <path/to/libunwind>`
18* `"DEBUG"` could be used instead of `"RELEASE"` to enable debug logs of libunwind.
19
20### Build:
21* `make unwind_static`
22* `build/lib/` will have the built library.
23