gnu: crc32c: Fix build on x86_64-linux.
authorMarius Bakke <marius@gnu.org>
Thu, 17 Nov 2022 01:24:46 +0000 (02:24 +0100)
committerMarius Bakke <marius@gnu.org>
Thu, 17 Nov 2022 01:28:32 +0000 (02:28 +0100)
* gnu/packages/cpp.scm (crc32c)[arguments]: Remove #:phases.  The check is for
SSE support in the compiler, not the build machine; and the runtime code tests
for SSE availability on the CPU before enabling the SSE code path.

gnu/packages/cpp.scm

index c1e98b7..210c76e 100644 (file)
@@ -1976,13 +1976,7 @@ std::wstring, etc).")
                                       "-DCRC32C_BUILD_TESTS="
                                       ;; TODO: perhaps infer #:tests?
                                       (if #$(%current-target-system)
-                                          "OFF" "ON")))
-           #:phases
-           #~(modify-phases %standard-phases
-               (add-after 'unpack 'make-reproducible
-                 (lambda _
-                   (substitute* "CMakeLists.txt"
-                     (("if\\(HAVE_SSE42\\)") "if(FALSE)")))))))
+                                          "OFF" "ON")))))
     (native-inputs (list googletest))
     (home-page "https://github.com/google/crc32c")
     (synopsis "Cyclic redundancy check")