mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
gnu: esbuild: Disable race detector on 32-bit targets.
* gnu/packages/web.scm (esbuild)[arguments]: Set the ESBUILD_RACE variable to an empty string to remove the -race option.
This commit is contained in:
parent
f6e80d4e16
commit
9f7c4f380f
1 changed files with 5 additions and 1 deletions
|
@ -1672,13 +1672,17 @@ (define-public esbuild
|
|||
#t))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
'(#:import-path "github.com/evanw/esbuild/cmd/esbuild"
|
||||
`(#:import-path "github.com/evanw/esbuild/cmd/esbuild"
|
||||
#:unpack-path "github.com/evanw/esbuild"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? unpack-path #:allow-other-keys)
|
||||
(when tests?
|
||||
;; The "Go Race Detector" is only supported on 64-bit
|
||||
;; platforms, this variable disables it.
|
||||
(unless ,(target-64bit?)
|
||||
(setenv "ESBUILD_RACE" ""))
|
||||
(with-directory-excursion (string-append "src/" unpack-path)
|
||||
(invoke "make" "test-go")))
|
||||
#t)))))
|
||||
|
|
Loading…
Reference in a new issue