| 1 | Use gcc as the default C compiler if CC is not set. |
| 2 | |
| 3 | diff --git a/giscanner/__init__.py b/giscanner/__init__.py |
| 4 | index 7c2f365a..607fe341 100644 |
| 5 | |
| 6 | |
| 7 | 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: |