Permalink
Browse files

Update rust recipe

  • Loading branch information...
jackpot51 committed Oct 23, 2017
1 parent 704c578 commit 21559d4c99e4dbe310d570b2843f488da78d10a1
Showing with 10 additions and 9 deletions.
  1. +10 −9 recipes/rust/recipe.sh
View
@@ -1,9 +1,9 @@
GIT=https://github.com/ids1024/rust.git
BRANCH=compile-redox
GIT=https://github.com/redox-os/rust.git
BRANCH=compile-redox-stage-0
DEPENDS="gcc cargo"
LLVM_PREFIX=$PWD/build/llvm-root
SYSROOT=/usr/$HOST
LLVM_PREFIX="$PWD/build/llvm-root"
SYSROOT="/usr/$HOST"
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
@@ -25,17 +25,18 @@ function recipe_build {
then
git -C llvm-redox pull
else
git clone https://github.com/ids1024/llvm.git -b redox2 --depth 1 llvm-redox
git clone https://github.com/redox-os/llvm.git -b redox --depth 1 llvm-redox
fi
# Build LLVM
rm -rf $LLVM_PREFIX
mkdir $LLVM_PREFIX
rm -rf "$LLVM_PREFIX"
mkdir -p "$LLVM_PREFIX"
rm -rf llvm-redox/build
mkdir -p llvm-redox/build
pushd llvm-redox/build
CC=$HOST-gcc CXX=$HOST-g++ cmake "${LLVM_CMAKE_ARGS[@]}" ..
make -j"$(nproc)"
make install
make -j4
make install
popd
cp ../{config.toml,llvm-config} ./

0 comments on commit 21559d4

Please sign in to comment.