projects/guix·blob python-team · refs

15 lines · 537 B

1Use gcc as the default C compiler if CC is not set.
2
3diff --git a/giscanner/__init__.py b/giscanner/__init__.py
4index 7c2f365a..607fe341 100644
5--- a/giscanner/__init__.py
6+++ b/giscanner/__init__.py
7@@ -21,6 +21,8 @@ import os
8 builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
9 if builddir is not None:
10 __path__.append(os.path.join(builddir, 'giscanner')) # type: ignore # mypy issue #1422
11+if not 'CC' in os.environ:
12+ os.environ['CC'] = 'gcc'
13 try:
14 from ._version import __version__
15 except ImportError: