From 08b87ebf7e05483af408086d8ea4cb4cc9ed4d2e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 11 Jun 2026 14:07:44 +0300 Subject: 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 --- gnu/packages/web.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index cfc8514c79c..4ba19a8dcc2 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/..." ))) -- cgit v1.2.3