~ruther/guix-local

ref: 3b9e1cdc709155da7ac5dc5a13e60ea77fa5ef68 guix-local/gnu/packages/patches/gobject-introspection-cc.patch -rw-r--r-- 537 bytes
3b9e1cdc — Jean-Pierre De Jesus DIAZ gnu: Add ocaml-unionfind. 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Use gcc as the default C compiler if CC is not set.

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: