diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 22:27:24 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 22:27:24 +0100 |
commit | 29bec3847866b7193413c6516198f3cdebff4e00 (patch) | |
tree | 8642da6de81ea217b12ea8a83d0676a9aac6398f /xi_profile.sh | |
parent | 76b91e996a38ff95095d887639aee5a2a8eb4fa6 (diff) |
made build profile by default use march=native
Diffstat (limited to 'xi_profile.sh')
-rw-r--r-- | xi_profile.sh | 8 |
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" |