mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: gobject-introspection: look for 'gcc' when no compiler seems available.
* gnu/packages/patches/gobject-introspection.patch: New file.
This commit is contained in:
parent
3e778ad3af
commit
503c5f6d5d
3 changed files with 19 additions and 3 deletions
14
gnu/packages/patches/gobject-introspection-cc.patch
Normal file
14
gnu/packages/patches/gobject-introspection-cc.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- a/giscanner/sourcescanner.py 2013-12-15 23:03:54.002937000 +0100
|
||||
+++ b/giscanner/sourcescanner.py 2013-12-15 23:04:50.322937000 +0100
|
||||
@@ -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').split(':')))):
|
||||
+ 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
|
Loading…
Add table
Add a link
Reference in a new issue