mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
Add setup script, remove openlibm from post-link (might have to readd later)
This commit is contained in:
parent
d2f5588d92
commit
464ff01059
2
cook.sh
2
cook.sh
@ -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
10
setup.sh
Executable 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"
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user