summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/graph.scm19
1 files changed, 9 insertions, 10 deletions
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 216b48195d4..9dca2be98ed 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -358,16 +358,15 @@ CPUFLAGS = ~{~a ~}~%"
358 (assoc-ref inputs "python*") python-version 358 (assoc-ref inputs "python*") python-version
359 (assoc-ref inputs "python-numpy") python-version 359 (assoc-ref inputs "python-numpy") python-version
360 python-version 360 python-version
361 (cons "-mpopcnt" 361 (list ,@(let ((system (or (%current-target-system)
362 (list ,@(let ((system (or (%current-target-system) 362 (%current-system))))
363 (%current-system)))) 363 (cond
364 (cond 364 ((string-prefix? "x86_64" system)
365 ((string-prefix? "x86_64" system) 365 '("-mavx" "-msse2" "-mpopcnt"))
366 '("-mavx" "-msse2")) 366 ((string-prefix? "i686" system)
367 ((string-prefix? "i686" system) 367 '("-msse2" "-mpopcnt"))
368 '("-msse2")) 368 (else
369 (else 369 '()))))))))
370 '())))))))))
371 (substitute* "Makefile" 370 (substitute* "Makefile"
372 (("../libfaiss.a") "")) 371 (("../libfaiss.a") ""))
373 (invoke "make" "cpu")))))) 372 (invoke "make" "cpu"))))))