Luna/tools/env.sh

16 lines
424 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2022-10-26 19:56:43 +00:00
export LUNA_ROOT=${LUNA_ROOT:-$(realpath $(dirname $0)/..)}
export LUNA_BASE=${LUNA_BASE:-$LUNA_ROOT/base}
2022-10-02 15:01:30 +00:00
export PATH=$LUNA_ROOT/toolchain/x86-64-luna/bin:$LUNA_ROOT/toolchain/dist:$PATH
export CC=x86_64-luna-gcc
export CXX=x86_64-luna-g++
export LD=x86_64-luna-ld
export AR=x86_64-luna-ar
export ASM=nasm
export STRIP=x86_64-luna-strip
filter-lines()
{
sed $'s|^|\x1b[32m('"$1/$2"$')\x1b[39m |'
}