zpaq: only set -mtune on i686,x86_64 (#18214)

This commit is contained in:
Eric Litak 2016-09-02 04:34:11 -07:00 committed by Domen Kožar
parent 0bdec3194a
commit 94571e51c4
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@ stdenv.mkDerivation rec {
+ (lib.optionalString (!isi686 && !isx86_64) "-DNOJIT ")
+ "-Dunix";
CXXFLAGS = with stdenv; ""
+ (lib.optionalString (isi686) "-march=i686 ")
+ (lib.optionalString (isx86_64) "-march=nocona ")
+ "-O3 -mtune=generic -DNDEBUG";
+ (lib.optionalString isi686 "-march=i686 -mtune=generic ")
+ (lib.optionalString isx86_64 "-march=nocona -mtune=generic ")
+ "-O3 -DNDEBUG";
in ''
buildFlagsArray=( "CPPFLAGS=${CPPFLAGS}" "CXXFLAGS=${CXXFLAGS}" )
'';