Skip to content

Commit 05769c8

Browse files
authored
Fix building issue when source is not in the git repo (#422)
1 parent 500e624 commit 05769c8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmake/scripts/prep.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ ln -snf ${HOME}/.cargo ${TEACLAVE_SYMLINKS}/cargo_home
5757
ln -snf ${CMAKE_SOURCE_DIR} ${TEACLAVE_SYMLINKS}/teaclave_src
5858
ln -snf ${CMAKE_BINARY_DIR} ${TEACLAVE_SYMLINKS}/teaclave_build
5959
# cleanup sgx_unwind/libunwind
60-
(cd ${CMAKE_SOURCE_DIR}/third_party/crates-sgx/ && git clean -fdx vendor/sgx_unwind/libunwind/)
61-
if git submodule status | egrep -q '^[-]|^[+]'; then echo 'INFO: Need to reinitialize git submodules' && git submodule update --init --recursive; fi
60+
(cd ${CMAKE_SOURCE_DIR}/third_party/crates-sgx/ && if [ -d .git ]; then git clean -fdx vendor/sgx_unwind/libunwind/; fi)
6261
rustup install --no-self-update ${RUSTUP_TOOLCHAIN} > /dev/null 2>&1
6362

6463
# build edl_libs

0 commit comments

Comments
 (0)