platform.gcc.arch: support for AMD CPUs

This commit is contained in:
volth
2020-08-05 02:32:48 +00:00
parent bf9d9cef58
commit 463db72e63
11 changed files with 62 additions and 18 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, readline, libedit, bc
, avxSupport ? false
, avxSupport ? builtins.elem (stdenv.hostPlatform.platform.gcc.arch or "default") [ "sandybridge" "ivybridge" "haswell" "broadwell" "skylake" "skylake-avx512" "btver2" "bdver1" "bdver2" "bdver3" "bdver4" "znver1"]
}:
stdenv.mkDerivation rec {