gnu: clang: Add search path specifications.

* gnu/packages/llvm.scm (clang-from-llvm)[native-search-paths]: New field.
This commit is contained in:
Ludovic Courtès 2015-06-19 11:34:53 +02:00
parent d0abf829a9
commit ef11ac8701
1 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -96,6 +97,16 @@ tools as well as libraries with equivalent functionality.")
(propagated-inputs (propagated-inputs
`(("llvm" ,llvm))) `(("llvm" ,llvm)))
(arguments `(#:configure-flags '("-DCLANG_INCLUDE_TESTS=True"))) (arguments `(#:configure-flags '("-DCLANG_INCLUDE_TESTS=True")))
;; Clang supports the same environment variables as GCC.
(native-search-paths
(list (search-path-specification
(variable "CPATH")
(files '("include")))
(search-path-specification
(variable "LIBRARY_PATH")
(files '("lib" "lib64")))))
(home-page "http://clang.llvm.org") (home-page "http://clang.llvm.org")
(synopsis "C language family frontend for LLVM") (synopsis "C language family frontend for LLVM")
(description (description