Initial Fork has been made from 5.0 release of llvm (commit: 6a075b6de4)
cd where you want to build libunwind
mkdir build
cd build
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>
"DEBUG"
could be used instead of "RELEASE"
to enable debug logs of libunwind.make unwind_static
build/lib/
will have the built library.