sh-elf-binutils/build.sh

20 lines
396 B
Bash
Raw Permalink Normal View History

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