This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-09-08 15:18:17 +00:00
|
|
|
Use gcc as the default C compiler if CC is not set.
|
2015-04-20 09:57:52 +00:00
|
|
|
|
2021-09-07 21:31:44 +00:00
|
|
|
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
|
2015-04-20 09:57:52 +00:00
|
|
|
builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
|
|
|
|
if builddir is not None:
|
2021-09-07 21:31:44 +00:00
|
|
|
__path__.append(os.path.join(builddir, 'giscanner')) # type: ignore # mypy issue #1422
|
2015-04-20 09:57:52 +00:00
|
|
|
+if not 'CC' in os.environ:
|
|
|
|
+ os.environ['CC'] = 'gcc'
|
2018-12-03 15:21:35 +00:00
|
|
|
try:
|
|
|
|
from ._version import __version__
|
|
|
|
except ImportError:
|