Skip to content

Commit

Permalink
Fix building issue when source is not in the git repo (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mssun authored Sep 29, 2020
1 parent 500e624 commit 05769c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/scripts/prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ ln -snf ${HOME}/.cargo ${TEACLAVE_SYMLINKS}/cargo_home
ln -snf ${CMAKE_SOURCE_DIR} ${TEACLAVE_SYMLINKS}/teaclave_src
ln -snf ${CMAKE_BINARY_DIR} ${TEACLAVE_SYMLINKS}/teaclave_build
# cleanup sgx_unwind/libunwind
(cd ${CMAKE_SOURCE_DIR}/third_party/crates-sgx/ && git clean -fdx vendor/sgx_unwind/libunwind/)
if git submodule status | egrep -q '^[-]|^[+]'; then echo 'INFO: Need to reinitialize git submodules' && git submodule update --init --recursive; fi
(cd ${CMAKE_SOURCE_DIR}/third_party/crates-sgx/ && if [ -d .git ]; then git clean -fdx vendor/sgx_unwind/libunwind/; fi)
rustup install --no-self-update ${RUSTUP_TOOLCHAIN} > /dev/null 2>&1

# build edl_libs
Expand Down

0 comments on commit 05769c8

Please sign in to comment.