guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d4666145b4234060e23cfaad3e6c012eb3055665
Author: Dariqq <[email protected]>
AuthorDate: Sun Oct 26 12:30:26 2025 +0000

    build-system: meson: Add windres compiler for mingw.
    
    * guix/build-system/meson.scm (make-binaries-alist): Add windres when
    compiling for mingw.
    
    Change-Id: I7f1f34cd5129918f4aba0baf1d2742e0bfbbb751
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 guix/build-system/meson.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm
index 6e6eae2cae..5b7b2606f5 100644
--- a/guix/build-system/meson.scm
+++ b/guix/build-system/meson.scm
@@ -103,7 +103,10 @@ TRIPLET."
     (objcopy . ,(string-append triplet "-objcopy"))
     (ar . ,(string-append triplet "-ar"))
     (ld . ,(string-append triplet "-ld"))
-    (strip . ,(string-append triplet "-strip"))))
+    (strip . ,(string-append triplet "-strip"))
+    ,@(if (target-mingw? triplet)
+          `((windres . ,(string-append triplet "-windres")))
+          '())))
 
 (define (make-built-in-options-alist triplet)
   (if (target-avr? triplet)

Reply via email to