* Set consistent Android API level * Ensure make utilizes all CPU cores if `MAKEFLAGS` are otherwise cleared via `!buildflags` because this is nevertheless wanted in mingw-w64 and android packages (that usually set `!buildflags`) * Ensure required devel packages are installed
11 lines
215 B
Bash
11 lines
215 B
Bash
#!/usr/bin/bash
|
|
|
|
[[ -n "$LIBMAKEPKG_BUILDENV_PARALLEL_SH" ]] && return
|
|
LIBMAKEPKG_BUILDENV_PARALLEL_SH=1
|
|
|
|
buildenv_functions+=('buildenv_parallel')
|
|
|
|
buildenv_parallel() {
|
|
[[ $MAKEFLAGS ]] || MAKEFLAGS=-j$(nproc)
|
|
}
|