[gobject-introspection] scanner: make sure we pass CFLAGS to cpp
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: make sure we pass CFLAGS to cpp
- Date: Sun, 8 Dec 2013 17:24:44 +0000 (UTC)
commit cbafcdb323307fd6bb5e48b44167fd995dc933a1
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Dec 8 11:48:08 2013 -0500
scanner: make sure we pass CFLAGS to cpp
When doing the source scanning in giscanner, make sure we pass the
user's CFLAGS environment variable to the compiler, as we do for the
dumper.
https://bugzilla.gnome.org/show_bug.cgi?id=720063
giscanner/sourcescanner.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index a115158..9a8bd41 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -289,6 +289,7 @@ class SourceScanner(object):
# Note that the generated dumper program is
# still built and linked by Visual C++.
cpp_args = ['gcc']
+ cpp_args += os.environ.get('CFLAGS', '').split()
cpp_args += ['-E', '-C', '-I.', '-']
cpp_args += self._cpp_options
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]