19 lines
337 B
Bash
Executable File
19 lines
337 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
# Avoid rebuilds of the same version
|
|
[[ ! -d build ]] && exit 0
|
|
|
|
source util.sh
|
|
cd build
|
|
|
|
# Number of processor cores
|
|
if [[ $(uname) == "OpenBSD" ]]; then
|
|
cores=$(sysctl -n hw.ncpu)
|
|
else
|
|
cores=$(nproc)
|
|
fi
|
|
|
|
echo "$TAG Compiling binutils (usually 5-10 minutes)..."
|
|
run_quietly giteapc-build.log \
|
|
make -j"$cores"
|