Compile some recipes with LTO

This commit is contained in:
Jeremy Soller 2019-02-25 16:07:56 -07:00
parent d42cda72d4
commit 35439d927d
13 changed files with 21 additions and 4 deletions

View File

@ -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
;;

View File

@ -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"

View File

@ -1 +1,2 @@
GIT=https://gitlab.redox-os.org/redox-os/ipcd.git
CARGOFLAGS="--bin ipcd -- -C lto"

View File

@ -1 +1,2 @@
GIT=https://gitlab.redox-os.org/redox-os/nulld.git
CARGOFLAGS="--bin nulld -- -C lto"

View File

@ -1,2 +1,3 @@
GIT=https://gitlab.redox-os.org/redox-os/orbital.git
CARGOFLAGS="--bin orbital -- -C lto"
DEPENDS="orbdata"

View File

@ -1,3 +1,4 @@
GIT=https://gitlab.redox-os.org/redox-os/orbterm.git
BINDIR=/ui/bin
CARGOFLAGS="--bin orbterm -- -C lto"
DEPENDS="orbital"

View File

@ -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"

View 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"

View 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"

View File

@ -1 +1,2 @@
GIT=https://gitlab.redox-os.org/redox-os/ptyd.git
CARGOFLAGS="--bin ptyd -- -C lto"

View File

@ -1 +1,2 @@
GIT=https://gitlab.redox-os.org/redox-os/randd.git
CARGOFLAGS="--bin randd -- -C lto"

View File

@ -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

View File

@ -1 +1,2 @@
GIT=https://gitlab.redox-os.org/redox-os/zerod.git
CARGOFLAGS="--bin zerod -- -C lto"