[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: rustc: Add native-search-paths.
From: |
Ben Woodcroft |
Subject: |
01/01: gnu: rustc: Add native-search-paths. |
Date: |
Fri, 10 Feb 2017 06:59:35 -0500 (EST) |
benwoodcroft pushed a commit to branch master
in repository guix.
commit fa73a7c1b3d9b56395152a0284e10171b4fefaed
Author: Ben Woodcroft <address@hidden>
Date: Tue Jan 31 21:01:59 2017 +1000
gnu: rustc: Add native-search-paths.
* gnu/packages/rust.scm (rust)[native-search-paths]: New field.
Co-authored-by: Ludovic Courtès <address@hidden>
---
gnu/packages/rust.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index ae04530..fb28410 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2016 David Craven <address@hidden>
;;; Copyright © 2016 Eric Le Bihan <address@hidden>
;;; Copyright © 2016 ng0 <address@hidden>
+;;; Copyright © 2017 Ben Woodcroft <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -272,6 +273,8 @@ rustc-bootstrap and cargo-bootstrap packages.")
(wrap-program (string-append out "/bin/rustc")
`("PATH" ":" prefix (,(string-append ld-wrapper "/bin")))
`("LIBRARY_PATH" ":" suffix (,(string-append libc
"/lib"))))))))))
+ ;; rustc invokes gcc, so we need to set its search paths accordingly.
+ (native-search-paths (package-native-search-paths gcc))
(synopsis "Compiler for the Rust progamming language")
(description "Rust is a systems programming language that provides memory
safety and thread safety guarantees.")