mtune=generic not supported on s390x

This commit is contained in:
Stuart D. Gathman 2018-07-18 21:42:43 -04:00
parent 7b61aa8ff0
commit 88f1da1300

View File

@ -289,7 +289,11 @@ EOF
chmod a+x cjdns-up.sh chmod a+x cjdns-up.sh
%if %{generic_build} %if %{generic_build}
%ifarch s390x
sed -i -e 's/-march=native/-mtune=native/' node_build/make.js
%else
sed -i -e 's/-march=native/-mtune=generic/' node_build/make.js sed -i -e 's/-march=native/-mtune=generic/' node_build/make.js
%endif
rm node_build/dependencies/cnacl/node_build/plans/*_AVX_plan.json rm node_build/dependencies/cnacl/node_build/plans/*_AVX_plan.json
# Leaving SSE2 code in since x86 is secondary arch and pretty much everyone # Leaving SSE2 code in since x86 is secondary arch and pretty much everyone
# is going to have SSE2, except things like XO-1 which needs custom build. # is going to have SSE2, except things like XO-1 which needs custom build.