gnu: gcc: Do not build gcov on MinGW.

* gnu/packages/gcc.scm (gcc-configure-flags-for-triplet): Disable gcov when
targetting mingw.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Vivien Kraus 2023-04-18 00:09:55 +02:00 committed by Ludovic Courtès
parent 7f0fbd0463
commit 74038cf66e
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -88,6 +88,11 @@ (define (gcc-configure-flags-for-triplet target)
(string-prefix? "powerpc-" target))
'("--with-long-double-128"))
;; GCC 11.3.0's <libgcov.h> includes <sys/mman.h>, which MinGW lacks:
;; <https://bugs.gentoo.org/show_bug.cgi?id=843989>.
((target-mingw? target)
'("--disable-gcov"))
(else
;; TODO: Add `arm.*-gnueabi', etc.
'())))