me
/
guix
Archived
1
0
Fork 0

gnu: rapidjson: Fix powerpc64le-linux build.

…by avoiding ‘-march=native’, which is an unnecessary risk even if the
result is not installed.

* gnu/packages/web.scm (rapidjson)[arguments]: Replace the outdated
'patch-aarch-march-detection phase with an unconditional
'fix-march=native one.
master
Tobias Geerinckx-Rice 2022-10-23 02:00:00 +02:00
parent 04ec2a15b9
commit 34e6c5d428
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 6 additions and 9 deletions

View File

@ -1381,15 +1381,12 @@ current version of any major web browser.")
(delete-file-recursively "bin/jsonchecker")))))
(build-system cmake-build-system)
(arguments
(if (string-prefix? "aarch64" (or (%current-target-system)
(%current-system)))
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-aarch-march-detection
(lambda _
(substitute* (find-files "." "^CMakeLists\\.txt$")
(("native") "armv8-a"))))))
'()))
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-march=native
(lambda _
(substitute* "CMakeLists.txt"
(("-m[^-]*=native") "")))))))
(home-page "https://github.com/Tencent/rapidjson")
(synopsis "JSON parser/generator for C++ with both SAX/DOM style API")
(description