1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: rust-bootstrap: Disable debug info during build.

This dramatically reduces the memory required to build Rust, and also
speeds up the build.

* gnu/packages/rust.scm (mrustc)[source]: Add snippet to remove building
debug info with mrustc.
This commit is contained in:
Mark H Weaver
2022-10-20 10:06:05 +03:00
committed by Efraim Flashner
parent bf8b03667f
commit 01be1973f4

View File

@@ -15,6 +15,7 @@
;;; Copyright © 2021 (unmatched parenthesis <paren@disroot.org>
;;; Copyright © 2022 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2022 Jim Newsome <jnewsome@torproject.org>
;;; Copyright © 2022 Mark H Weaver <mhw@netris.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -138,7 +139,14 @@
(file-name (git-file-name name (git-version version revision commit)))
(sha256
(base32
"09rvm3zgx1d86gippl8qzh13m641ynbw9q0zsc90g0h1khd3z3b6")))))
"09rvm3zgx1d86gippl8qzh13m641ynbw9q0zsc90g0h1khd3z3b6"))
(modules '((guix build utils)))
(snippet
'(begin
;; Drastically reduces memory and build time requirements
;; by disabling debug by default.
(substitute* (find-files "." "Makefile")
(("-g ") "")))))))
;;; Rust 1.54 is special in that it is built with mrustc, which shortens the
;;; bootstrap path.