1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| | Try $CC, 'cc', and finally 'gcc'.
--- a/giscanner/sourcescanner.py.orig 2013-10-16 03:41:25.381719000 +0200
+++ b/giscanner/sourcescanner.py 2013-10-16 03:43:35.533719000 +0200
@@ -277,6 +277,11 @@
defines = ['__GI_SCANNER__']
undefs = []
cpp_args = os.environ.get('CC', 'cc').split() # support CC="ccache gcc"
+ if (cpp_args == ['cc'] and
+ not any(map(lambda x: os.access(os.path.join(x, 'cc'), os.X_OK),
+ os.environ.get('PATH')))):
+ cpp_args = ['GUIX_GCC_PATH']
+
if 'cl' in cpp_args:
# The Microsoft compiler/preprocessor (cl) does not accept
# source input from stdin (the '-' flag), so we need
|