gnu: rapidjson: Fix building on aarch64.
* gnu/packages/web.scm (rapidjson)[arguments]: Add custom phase for aarch64 to fix -march detection.
This commit is contained in:
parent
6f9f01fbf6
commit
4fbed7494d
1 changed files with 12 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
||||||
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
|
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
|
||||||
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
|
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
|
||||||
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
|
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
|
||||||
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
|
;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
|
||||||
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
|
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
|
||||||
;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
|
||||||
|
@ -464,6 +464,17 @@ current version of any major web browser.")
|
||||||
'(substitute* (find-files "." "^CMakeLists\\.txt$")
|
'(substitute* (find-files "." "^CMakeLists\\.txt$")
|
||||||
(("-Werror") "")))))
|
(("-Werror") "")))))
|
||||||
(build-system cmake-build-system)
|
(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"))
|
||||||
|
#t))))
|
||||||
|
'())))
|
||||||
(home-page "https://github.com/miloyip/rapidjson")
|
(home-page "https://github.com/miloyip/rapidjson")
|
||||||
(synopsis "JSON parser/generator for C++ with both SAX/DOM style API")
|
(synopsis "JSON parser/generator for C++ with both SAX/DOM style API")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue