[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: gcc: Do not build gcov on MinGW.
From: |
guix-commits |
Subject: |
03/03: gnu: gcc: Do not build gcov on MinGW. |
Date: |
Tue, 25 Apr 2023 12:10:21 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 74038cf66e3a8cdcd9d97a81d9176c3cdefdaaf7
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Tue Apr 18 00:09:55 2023 +0200
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>
---
gnu/packages/gcc.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index b7d15d0730..e3ce0069f0 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -88,6 +88,11 @@ where the OS part is overloaded to denote a specific
ABI---into GCC
(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.
'())))