1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00
Files
vimconfig/pacman/.config/pacman/makepkg.conf

20 lines
530 B
Bash

#!/hint/bash
# Modify default build parameters to build native optimizations
CFLAGS="${CFLAGS/-mtune=generic/-mtune=native}"
CXXFLAGS="${CXXFLAGS/-mtune=generic/-mtune=native}"
# Enable rust to do the same
export RUSTFLAGS="-C target_cpu=native"
# Do a parallel build and enable output combining
MAKEFLAGS="-j$(nproc) -Otarget"
# Use parallel compression
COMPRESSXZ=(nice xz -c -z -T 0 -)
# Use one central sources dir
SRCDEST="${XDG_CACHE_HOME:-$HOME/.cache}/pacman/sources"
# Prefer sha256 checks.
INTEGRITY_CHECK=(sha256)