devconf/.zcustom/env.zsh

19 lines
361 B
Bash
Raw Normal View History

2021-09-07 11:17:16 +00:00
export EDITOR="vim"
2021-10-06 22:16:38 +00:00
export MAKEOPTS="-j$(cat /proc/cpuinfo | awk -F: '$1 ~ /cpu cores/ { print $2 }' | head -n 1 | tr -d ' ')"
2021-10-06 22:19:52 +00:00
export CFLAGS="-match=native"
export CXXFLAGS="$CFLAGS"
2021-10-06 22:16:38 +00:00
if [ -n "$(command -v clang)" ]; then
export CC=clang
else
export CC=gcc
fi
if [ -n "$(command -v clang++)" ]; then
export CXX=clang++
else
export CXX=g++
fi