sh-elf-binutils/build.sh
Lephenixnoir 92ec440af8
new build system for fxSDK sysroot
* Configure and install so stuff ends up in the fxSDK sysroot
* Don't clean by default, make it a configuration called :clean
* :any now only skips build if the compiler is in the sysroot
* Redo README with proper tutorial

Details:
* Proper .gitignore
2022-08-19 15:03:06 +02:00

19 lines
396 B
Bash
Executable file

#! /usr/bin/env bash
# Avoid rebuilds of the same version
[[ -e "build/giteapc-skip-rebuild.txt" ]] && exit 0
source util.sh
cd build
# Number of processor cores
if [[ $(uname) == "OpenBSD" || $(uname) == "Darwin" ]]; then
cores=$(sysctl -n hw.ncpu)
else
cores=$(nproc)
fi
echo "$TAG Compiling binutils (usually 5-10 minutes)..."
run_quietly giteapc-build.log \
$MAKE_COMMAND -j"$cores"