@@ -890,6 +890,16 @@ from forcing GEXP-PROMISE."
(substitute* '("browser/confvars.sh")
(("MOZ_SERVICES_SYNC=0") "MOZ_SERVICES_SYNC=1"))
#t))
+ (add-after 'unpack 'dont-store-compiler-paths
+ (lambda _
+ ;; Remove references to the compilers used from the output. Reduces
+ ;; `guix size icecat' by 1 GiB on x86-64.
+ (let ((zap "Store reference removed"))
+ (substitute* "toolkit/content/buildconfig.html"
+ (("@CC@") zap)
+ (("@CXX@") zap)
+ (("@RUSTC@") zap)
+ (("@MOZ_CONFIGURE_OPTIONS@") zap)))))
(add-after 'unpack 'apply-guix-specific-patches
(lambda* (#:key inputs native-inputs #:allow-other-keys)
(let ((patch (string-append (assoc-ref (or native-inputs inputs)