Skip to content
Snippets Groups Projects
Commit 22d0e9b7 authored by Andy Wingo's avatar Andy Wingo Committed by Mark H Weaver
Browse files

gnu: Simplify LLVM build.

* gnu/packages/llvm.scm (llvm)[arguments]: Remove phases argument.
  Add to configure-flags "-DCMAKE_SKIP_BUILD_RPATH=FALSE" and
  "-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE".
parent c34507d6
No related branches found
No related tags found
No related merge requests found
...@@ -49,24 +49,8 @@ (define-public llvm ...@@ -49,24 +49,8 @@ (define-public llvm
`(("python" ,python-wrapper) `(("python" ,python-wrapper)
("perl" ,perl))) ("perl" ,perl)))
(arguments (arguments
`(#:phases (alist-cons-before `(#:configure-flags '("-DCMAKE_SKIP_BUILD_RPATH=FALSE"
'build 'link-lib-for-build-exec "-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE")))
(lambda* (#:key outputs #:allow-other-keys)
;; This is a hacky fix that will allow binaries to run
;; before being installed. -DCMAKE_SKIP_BUILD_RPATH=FALSE
;; seems to not help. Nixpkgs does the same.
(let* ((out (assoc-ref outputs "out"))
(out-lib (string-append out "/lib"))
(build-lib (string-append (getcwd) "/lib")))
(mkdir-p out)
(symlink build-lib out-lib)))
(alist-cons-after
'build 'cleanup-out
(lambda* (#:key outputs #:allow-other-keys)
;; Cleanup the symlink that was created previously. Let
;; the install phase repopulate out.
(delete-file-recursively (assoc-ref outputs "out")))
%standard-phases))))
(home-page "http://www.llvm.org") (home-page "http://www.llvm.org")
(synopsis "Optimizing compiler infrastructure") (synopsis "Optimizing compiler infrastructure")
(description (description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment