From 29bec3847866b7193413c6516198f3cdebff4e00 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 22:27:24 +0100 Subject: made build profile by default use march=native --- xi_profile.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xi_profile.sh') diff --git a/xi_profile.sh b/xi_profile.sh index 93be8f6..aa0445a 100644 --- a/xi_profile.sh +++ b/xi_profile.sh @@ -1,13 +1,13 @@ -#export CC="clang" -#export CXX="clang++" -#export LD="clang" + +# local xibuild profile +# tune these preferences to suite local builds export JOBS=$(grep "processor" /proc/cpuinfo | wc -l) export MAKEFLAGS=-j$JOBS export SAMUFLAGS=-j$JOBS export CARGO_BUILD_JOBS=$JOBS -export CFLAGS="-pipe -Os -fomit-frame-pointer" +export CFLAGS="-pipe -O2 -march=native" export CXXFLAGS="$CFLAGS" export CPPFLAGS="$CFLAGS" export LDFLAGS="-Wl,--as-needed,-O1,--sort-common" -- cgit v1.2.1