Add setup script, remove openlibm from post-link (might have to readd later)

This commit is contained in:
Jeremy Soller 2016-10-31 12:57:38 -06:00
parent d2f5588d92
commit 464ff01059
3 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
export RUST_TARGET_PATH=`realpath targets`
export RUSTFLAGS="--cfg redox"
TARGET=x86_64-unknown-redox

10
setup.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e
./cook.sh libstd unfetch
./cook.sh libstd fetch
./cook.sh libstd build
cp recipes/libstd/build/target/x86_64-unknown-redox/debug/deps/*.rlib ~/.xargo/lib/rustlib/x86_64-unknown-redox/lib/
echo "cook.sh is ready to use"

View File

@ -9,7 +9,6 @@
"vendor": "unknown",
"target-family": "redox",
"pre-link-args": ["-m64", "-nostdlib", "-static"],
"post-link-args": ["build/userspace/libopenlibm.a"],
"features": "-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2",
"dynamic-linking": false,
"executables": true,