mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: rust: Use %gcc-search-paths.
* gnu/packages/rust.scm (rust-1.55)[native-search-paths]: Replace list with factorized %gcc-search-paths. Change-Id: I0052aa748d45b2302e86589e0e9bfe1ddc0c6aa3
This commit is contained in:
parent
80fffdcd9c
commit
f3b13d4e0e
1 changed files with 2 additions and 11 deletions
|
@ -57,6 +57,7 @@ (define-module (gnu packages rust)
|
|||
#:use-module (guix build-system cargo)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (guix search-paths)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix memoization)
|
||||
#:use-module (guix git-download)
|
||||
|
@ -508,18 +509,8 @@ (define-public rust-1.55
|
|||
`(("llvm" ,llvm-13)
|
||||
("openssl" ,openssl)))
|
||||
;; rustc invokes gcc, so we need to set its search paths accordingly.
|
||||
;; Note: duplicate its value here to cope with circular dependencies among
|
||||
;; modules (see <https://bugs.gnu.org/31392>).
|
||||
(native-search-paths
|
||||
(list (search-path-specification
|
||||
(variable "C_INCLUDE_PATH")
|
||||
(files '("include")))
|
||||
(search-path-specification
|
||||
(variable "CPLUS_INCLUDE_PATH")
|
||||
(files '("include/c++" "include")))
|
||||
(search-path-specification
|
||||
(variable "LIBRARY_PATH")
|
||||
(files '("lib" "lib64")))))
|
||||
%gcc-search-paths)
|
||||
(supported-systems (delete "i586-gnu" %supported-systems))
|
||||
(synopsis "Compiler for the Rust programming language")
|
||||
(description "Rust is a systems programming language that provides memory
|
||||
|
|
Loading…
Reference in a new issue