mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Improve makepkg configuration.
This commit is contained in:
@@ -1,13 +1,19 @@
|
|||||||
# march=native and flto added
|
#!/hint/bash
|
||||||
CFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong"
|
# Modify default build parameters to build native optimizations
|
||||||
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong"
|
CFLAGS="${CFLAGS/-mtune=generic/-mtune=native}"
|
||||||
RUSTFLAGS="-C target_cpu=native"
|
CXXFLAGS="${CXXFLAGS/-mtune=generic/-mtune=native}"
|
||||||
|
|
||||||
# Do a parallel build.
|
# Enable rust to do the same
|
||||||
MAKEFLAGS="-j6"
|
export RUSTFLAGS="-C target_cpu=native"
|
||||||
|
|
||||||
|
# Do a parallel build and enable output combining
|
||||||
|
MAKEFLAGS="-j$(nproc) -Otarget"
|
||||||
|
|
||||||
# Use parallel compression
|
# Use parallel compression
|
||||||
COMPRESSXZ=(nice xz -c -z -T 0 -)
|
COMPRESSXZ=(nice xz -c -z -T 0 -)
|
||||||
|
|
||||||
# Use one central sources dir
|
# Use one central sources dir
|
||||||
SRCDEST="$HOME/.cache/pacman/sources"
|
SRCDEST="${XDG_CACHE_HOME:-$HOME/.cache}/pacman/sources"
|
||||||
|
|
||||||
|
# Prefer sha256 checks.
|
||||||
|
INTEGRITY_CHECK=(sha256)
|
||||||
|
|||||||
Reference in New Issue
Block a user