gnu: make-torbrowser: Build with Clang.

* gnu/packages/tor-browsers.scm (make-torbrowser) [arguments] <#:phases>
'setenv: Set environment variables corresponding to Clang (AR, NM, CC and CXX).

Change-Id: Ib67e2eb7669147a6a304769c9f36b4a90eb35b59
This commit is contained in:
André Batista 2025-06-30 14:22:14 -03:00 committed by Ian Eure
parent cf15fad31a
commit 04393803a1
No known key found for this signature in database
GPG key ID: 8499AC88F1A71CF2

View file

@ -506,6 +506,11 @@ Browser.")
(add-before 'configure 'setenv
(lambda _
(setenv "CONFIG_SHELL" (which "bash"))
;; Use Clang, Clang is 2x faster than GCC
(setenv "AR" "llvm-ar")
(setenv "NM" "llvm-nm")
(setenv "CC" "clang")
(setenv "CXX" "clang++")
;; Install location is prefix/lib/$MOZ_APP_NAME. Also
;; $MOZ_APP_NAME is the executable name. Default is
;; "firefox".