mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-30 16:48:45 +08:00
Compile some recipes with LTO
This commit is contained in:
parent
d42cda72d4
commit
35439d927d
3
cook.sh
3
cook.sh
@ -6,6 +6,7 @@ source config.sh
|
||||
|
||||
# Variables to be overriden by recipes
|
||||
export BINDIR=bin
|
||||
export CARGOBUILD=rustc
|
||||
export CARGOFLAGS=
|
||||
export DEBUG=
|
||||
export PREPARE_COPY=1
|
||||
@ -311,7 +312,7 @@ function op {
|
||||
if [ "$skip" -eq "0" ]
|
||||
then
|
||||
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
|
||||
xargo rustc --target "$TARGET" $release_flag $CARGOFLAGS
|
||||
xargo "$CARGOBUILD" --target "$TARGET" $release_flag $CARGOFLAGS
|
||||
fi
|
||||
popd > /dev/null
|
||||
;;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/drivers.git
|
||||
CARGOFLAGS=--all
|
||||
CARGOBUILD="build"
|
||||
CARGOFLAGS="--all"
|
||||
|
||||
function recipe_version {
|
||||
echo "0.1.1"
|
||||
|
||||
@ -1 +1,2 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/ipcd.git
|
||||
CARGOFLAGS="--bin ipcd -- -C lto"
|
||||
|
||||
@ -1 +1,2 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/nulld.git
|
||||
CARGOFLAGS="--bin nulld -- -C lto"
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/orbital.git
|
||||
CARGOFLAGS="--bin orbital -- -C lto"
|
||||
DEPENDS="orbdata"
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/orbterm.git
|
||||
BINDIR=/ui/bin
|
||||
CARGOFLAGS="--bin orbterm -- -C lto"
|
||||
DEPENDS="orbital"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/orbutils.git
|
||||
BINDIR=/ui/bin
|
||||
CARGOFLAGS="--bin background --bin launcher --bin orblogin"
|
||||
CARGOFLAGS="--bin background -- -C lto"
|
||||
DEPENDS="orbital"
|
||||
4
recipes/orbutils-launcher/recipe.sh
Normal file
4
recipes/orbutils-launcher/recipe.sh
Normal file
@ -0,0 +1,4 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/orbutils.git
|
||||
BINDIR=/ui/bin
|
||||
CARGOFLAGS="--bin launcher -- -C lto"
|
||||
DEPENDS="orbital"
|
||||
4
recipes/orbutils-orblogin/recipe.sh
Normal file
4
recipes/orbutils-orblogin/recipe.sh
Normal file
@ -0,0 +1,4 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/orbutils.git
|
||||
BINDIR=/ui/bin
|
||||
CARGOFLAGS="--bin orblogin -- -C lto"
|
||||
DEPENDS="orbital"
|
||||
@ -1 +1,2 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/ptyd.git
|
||||
CARGOFLAGS="--bin ptyd -- -C lto"
|
||||
|
||||
@ -1 +1,2 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/randd.git
|
||||
CARGOFLAGS="--bin randd -- -C lto"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/uutils.git
|
||||
GIT_UPSTREAM=https://github.com/uutils/coreutils.git
|
||||
CARGOFLAGS="--no-default-features --features redox"
|
||||
CARGOFLAGS="--no-default-features --features redox --bin uutils -- -C lto"
|
||||
|
||||
BINS=(
|
||||
base32
|
||||
|
||||
@ -1 +1,2 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/zerod.git
|
||||
CARGOFLAGS="--bin zerod -- -C lto"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user