fix compilation issue for newer versions of occlum
This commit is contained in:
parent
1c4f9abd03
commit
17cb3342ad
@ -7,17 +7,17 @@ cd "$script_dir/.."
|
|||||||
prerequisites=$1
|
prerequisites=$1
|
||||||
|
|
||||||
if [ "$prerequisites" == "--prep" ]; then
|
if [ "$prerequisites" == "--prep" ]; then
|
||||||
echo "Preparing the packager environment"
|
|
||||||
apt update && apt install -y openssh-client
|
|
||||||
rustup install 1.83.0
|
|
||||||
rustup install stable-x86_64-unknown-linux-gnu
|
|
||||||
rustup default stable
|
|
||||||
rustup target add x86_64-unknown-linux-musl
|
|
||||||
|
|
||||||
echo "Building the occlum fork"
|
echo "Building the occlum fork"
|
||||||
[ -d occlum ] || git clone https://gitea.detee.cloud/general/occlum.git
|
[ -d occlum ] || git clone https://gitea.detee.cloud/general/occlum.git
|
||||||
(cd occlum && make submodule)
|
(cd occlum && make submodule)
|
||||||
(cd occlum/tools/toolchains/utils_lib && ./build.sh)
|
(cd occlum/tools/toolchains/utils_lib && ./build.sh)
|
||||||
|
|
||||||
|
echo "Preparing the packager environment"
|
||||||
|
apt update && apt install -y openssh-client
|
||||||
|
rustup install 1.84.0
|
||||||
|
rustup install stable-x86_64-unknown-linux-gnu
|
||||||
|
rustup default stable
|
||||||
|
rustup target add x86_64-unknown-linux-musl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$TEST" ]; then
|
if [ -n "$TEST" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user