Skip to content
Snippets Groups Projects
Unverified Commit 230fda9e authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

Use -unknown- instead of -elf-

parent 219464b4
No related branches found
No related tags found
No related merge requests found
[target.x86_64-unknown-redox]
linker = "x86_64-elf-redox-gcc"
linker = "x86_64-unknown-redox-gcc"
rustflags = []
......@@ -4,13 +4,12 @@ set -e
# Configuration
ARCH=x86_64
export TARGET=$ARCH-unknown-redox
HOST=$ARCH-elf-redox
RUST_HOST=$ARCH-unknown-redox
HOST=$TARGET
# Automatic variables
ROOT="$(cd `dirname "$0"` && pwd)"
REPO="$ROOT/repo/$TARGET"
export CC="x86_64-elf-redox-gcc"
export CC="$HOST-gcc"
export XARGO_HOME="$ROOT/xargo"
if [[ "$OSTYPE" == "darwin"* ]]; then
......
......@@ -54,10 +54,10 @@ function recipe_clean {
function recipe_stage {
binpath="$1/bin"
libpath="$1/lib/rustlib/${RUST_HOST}/lib"
libpath="$1/lib/rustlib/${TARGET}/lib"
mkdir -p "$binpath" "$libpath"
cp -fv "build/${RUST_HOST}/stage2/bin/rustc" "$binpath"
cp -fv "build/${TARGET}/stage2/bin/rustc" "$binpath"
${HOST}-strip "$binpath/rustc"
cp -fv $(find build/${RUST_HOST}/stage2/lib/rustlib/${RUST_HOST}/lib/ -type f | grep -v librustc) "$libpath"
cp -fv $(find build/${TARGET}/stage2/lib/rustlib/${TARGET}/lib/ -type f | grep -v librustc) "$libpath"
skip=1
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment