1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:57:44 +00:00

Build: get rid of UseIt.sh

The build system uses relative paths to the toolchain binaries, so
modifying $PATH is no longer necessary, and nothing needs
$SERENITY_ROOT anymore.
This commit is contained in:
joshua stein 2019-12-20 15:49:27 -06:00 committed by Andreas Kling
parent 23158aef2e
commit 73c953b674
5 changed files with 7 additions and 22 deletions

View file

@ -1,13 +1,13 @@
#!/bin/bash
if [ -z "$SERENITY_ROOT" ]; then
echo "You must source UseIt.sh to build ports."
exit 1
fi
set -eu
prefix=$(pwd)/..
SCRIPT=`dirname $0`
export SERENITY_ROOT=`realpath $SCRIPT/../`
prefix=$SERENITY_ROOT/Ports
export CC=i686-pc-serenity-gcc
export CXX=i686-pc-serenity-g++
export PATH=$SERENITY_ROOT/Toolchain/Local/bin:$PATH
. "$@"
shift