+{% if grains['host'] in useflags %}
+{% set use = useflags[grains['host']] %}
+{% endif %}
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
-CFLAGS="-O2 -pipe -march=haswell -fomit-frame-pointer"
+CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j{{ grains['num_cpus'] + 1 }}"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/"
-USE="X alsa -pulseaudio pcsc-lite -bindist -cups -ldap libressl wayland unicode ipv6 ipv4"
+USE="-pulseaudio -bindist -cups -ldap pcsc-lite X alsa libressl wayland unicode ipv6 ipv4 {{ use }}"
GRUB_PLATFORMS="efi-64"
VIDEO_CARDS="{{ video_cards }}"