summaryrefslogtreecommitdiff
path: root/xi_profile.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 22:27:24 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 22:27:24 +0100
commit29bec3847866b7193413c6516198f3cdebff4e00 (patch)
tree8642da6de81ea217b12ea8a83d0676a9aac6398f /xi_profile.sh
parent76b91e996a38ff95095d887639aee5a2a8eb4fa6 (diff)
made build profile by default use march=native
Diffstat (limited to 'xi_profile.sh')
-rw-r--r--xi_profile.sh8
1 files changed, 4 insertions, 4 deletions
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"