guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/06: gnu: esbuild: Disable race detector on 32-bit targets.


From: guix-commits
Subject: 05/06: gnu: esbuild: Disable race detector on 32-bit targets.
Date: Thu, 2 Sep 2021 15:48:27 -0400 (EDT)

planglois pushed a commit to branch master
in repository guix.

commit 9f7c4f380fdd86d81c805b72e4d05e9e658d3dc2
Author: Pierre Langlois <pierre.langlois@gmx.com>
AuthorDate: Mon Aug 30 00:25:58 2021 +0100

    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.
---
 gnu/packages/web.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index f0ac9cc..5817d2d 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1672,13 +1672,17 @@ used to validate and fix HTML data.")
            #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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]