mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -05:00
llvm: Build with RTTI by default.
Increases size of llvm@6 by 2.5MiB (2.5%), but saves building specialized llvm's with rtti enabled for packages that require RTTI when linking with the llvm libraries. * gnu/packages/llvm.scm (llvm-3.8-with-rtti): Remove variable. (llvm)[arguments]: Add '-DLLVM_REQUIRES_RTTI=1' to #:configure-flags. * gnu/packages/audio.scm (faust-2)[native-inputs]: 'llvm-3.8-with-rtti' -> 'llvm-3.8'.
This commit is contained in:
parent
0c7707d53e
commit
fc9dbf4131
2 changed files with 3 additions and 14 deletions
|
@ -1234,7 +1234,7 @@ (define-public faust-2
|
|||
`(list (string-append "prefix=" (assoc-ref %outputs "out"))
|
||||
"world"))))
|
||||
(native-inputs
|
||||
`(("llvm" ,llvm-3.8-with-rtti)
|
||||
`(("llvm" ,llvm-3.8)
|
||||
("which" ,which)
|
||||
("xxd" ,xxd)
|
||||
("ctags" ,emacs-minimal) ; for ctags
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
|
||||
;;; Copyright © 2014, 2016, 2018 Eric Bavier <bavier@member.fsf.org>
|
||||
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
||||
;;; Copyright © 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016 Dennis Mungai <dmngaie@gmail.com>
|
||||
|
@ -65,6 +65,7 @@ (define-public llvm
|
|||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
|
||||
"-DBUILD_SHARED_LIBS:BOOL=TRUE"
|
||||
"-DLLVM_ENABLE_FFI:BOOL=TRUE"
|
||||
"-DLLVM_REQUIRES_RTTI=1" ; For some third-party utilities
|
||||
"-DLLVM_INSTALL_UTILS=ON") ; Needed for rustc.
|
||||
|
||||
;; Don't use '-g' during the build, to save space.
|
||||
|
@ -279,18 +280,6 @@ (define-public llvm-3.8
|
|||
(base32
|
||||
"1ybmnid4pw2hxn12ax5qa5kl1ldfns0njg8533y3mzslvd5cx0kf"))))))
|
||||
|
||||
;; This is for Faust 2
|
||||
(define-public llvm-3.8-with-rtti
|
||||
(package (inherit llvm-3.8)
|
||||
(name "llvm-with-rtti")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments llvm)
|
||||
((#:configure-flags flags)
|
||||
`(append '("-DCMAKE_SKIP_BUILD_RPATH=FALSE"
|
||||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
|
||||
"-DLLVM_REQUIRES_RTTI=1")
|
||||
,flags))))))
|
||||
|
||||
(define-public clang-runtime-3.8
|
||||
(clang-runtime-from-llvm
|
||||
llvm-3.8
|
||||
|
|
Loading…
Reference in a new issue