summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gobject-introspection-cc.patch
blob: fde13d1a594b3b3d60ad4bdc35f38a7599626e71 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From e9b8fa0768a1f0ef7df2659eb559f48433ff82be Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <rg@raghavgururajan.name>
Date: Tue, 7 Sep 2021 16:59:16 -0400
Subject: Use gcc as the default C compiler if CC is not set.

---
 giscanner/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/giscanner/__init__.py b/giscanner/__init__.py
index 7c2f365a..607fe341 100644
--- a/giscanner/__init__.py
+++ b/giscanner/__init__.py
@@ -21,6 +21,8 @@ import os
 builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
 if builddir is not None:
     __path__.append(os.path.join(builddir, 'giscanner'))  # type: ignore  # mypy issue #1422
+if not 'CC' in os.environ:
+    os.environ['CC'] = 'gcc'
 try:
     from ._version import __version__
 except ImportError:
-- 
2.33.0