guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit 738166e59a78aca57af6a63e8cf892716104f376
Author: Efraim Flashner <[email protected]>
AuthorDate: Thu Jun 11 14:07:44 2026 +0300
gnu: esbuild: Fix building with gccgo.
* gnu/packages/web.scm (esbuild)[arguments]: Adjust the test flags when
building with gccgo.
Merges: guix/guix!9239
Change-Id: I5b4f1f291847f68328437d5a84e3e3ce50b6ed7e
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/web.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 598792d23c..0989968d05 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -2528,8 +2528,10 @@ UTS#46.")
#:import-path "github.com/evanw/esbuild/cmd/esbuild"
#:unpack-path "github.com/evanw/esbuild"
#:test-flags #~(list #$(if (and (target-64bit?)
- ;; The -race option is not supported on
riscv64
- (not (target-riscv64?)))
+ ;; The -race option is not supported on
+ ;; riscv64 and is not present in gccgo.
+ (not (target-riscv64?))
+ (supported-package? go))
"-race" "-short"))
;; Test subdirectories are compiled from #:import-path.
#:test-subdirs #~(list "../../internal/..." "../../pkg/..." )))