diff mbox series

[bug#64188,3/8] guix: cpu: Rewrite fallback for x86_64 cpu->gcc-architecture.

Message ID d7031a0abf21e8bdb55685de62665afd7b6dcc80.1687247150.git.efraim@flashner.co.il
State New
Headers show
Series More package tuning | expand

Commit Message

Efraim Flashner June 20, 2023, 7:51 a.m. UTC
* guix/cpu.scm (cpu->gcc-architecture): Adjust the fallback case to use
cpu->generic-architecture.
---
 guix/cpu.scm | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
diff mbox series

Patch

diff --git a/guix/cpu.scm b/guix/cpu.scm
index e6102e3d14..e500664503 100644
--- a/guix/cpu.scm
+++ b/guix/cpu.scm
@@ -210,21 +210,7 @@  (define (cpu->gcc-architecture cpu)
            (if (and (= 7 (cpu-family cpu))
                     (= #x3b (cpu-model cpu)))
              "lujiazui"
-             (if-flags ("avx512" => "knl")
-                       ("adx" => "broadwell")
-                       ("avx2" => "haswell")
-                       ;; TODO: tigerlake, cooperlake, etc.
-                       ("avx" => "sandybridge")
-                       ("sse4_2" "gfni" => "tremont")
-                       ("sse4_2" "sgx" => "goldmont-plus")
-                       ("sse4_2" "xsave" => "goldmont")
-                       ("sse4_2" "movbe" => "silvermont")
-                       ("sse4_2" => "nehalem")
-                       ("ssse3" "movbe" => "bonnell")
-                       ("ssse3" "sse3" "longmode" => "nocona")
-                       ("ssse3" "sse3" "lm" => "nocona")
-                       ("ssse3" "sse3" => "prescott")
-                       ("ssse3" => "core2"))))
+             (cpu->generic-architecture cpu)))
 
          ;; TODO: Recognize CENTAUR/CYRIX/NSC?