Skip to content

Commit

Permalink
add compiler flags for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
briend authored Feb 7, 2019
1 parent e729ceb commit 850c26e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ yum install -y intltool make git swig python-setuptools gettext gcc-c++ \
libpng-devel lcms2-devel json-c-devel \
gtk3 gobject-introspection || exit 1

# Optimize compiler flags for better perf
# These are pretty generic, ideally one would compile for own native arch
# We could try to target several CPU families in the future and distribute
# several binary packages.
export CFLAGS='-Ofast -ftree-vectorize -fopt-info-vec-optimized -funsafe-math-optimizations -funsafe-loop-optimizations'

mkdir -p /work || exit 1
cd /work || exit 1
Expand Down

0 comments on commit 850c26e

Please sign in to comment.