summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2015-03-30 23:28:55 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2015-04-18 21:07:53 +0200
commit1f3db7840a2551a55c198f8b42ee6947f48b021e (patch)
treeff58a3b39991ed63abfe6e6037a4c6b05fd1e952 /tests
parent92d9c387687cf71f7113df54f0297fb0633c9afc (diff)
downloadgobject-introspection-1f3db7840a2551a55c198f8b42ee6947f48b021e.tar.gz
Makefile.introspection: pass CC to scanner
Extends commit 92d9c38 to also pass CC to g-ir-scanner. https://bugzilla.gnome.org/show_bug.cgi?id=700066
Diffstat (limited to 'tests')
-rw-r--r--tests/repository/Makefile.am9
-rw-r--r--tests/scanner/Makefile.am1
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/repository/Makefile.am b/tests/repository/Makefile.am
index 882fa9ec..c79ba81f 100644
--- a/tests/repository/Makefile.am
+++ b/tests/repository/Makefile.am
@@ -19,7 +19,8 @@ gitypelibtest_LDADD = $(top_builddir)/libgirepository-1.0.la $(GIREPO_LIBS)
TESTS = gitestrepo gitestthrows gitypelibtest
TESTS_ENVIRONMENT=env GI_TYPELIB_PATH="$(top_builddir):$(top_builddir)/gir:$(top_builddir)/tests:$(top_builddir)/tests/scanner" \
- XDG_DATA_DIRS="$(top_srcdir)/gir:$(XDG_DATA_DIRS)" \
- PATH="$(top_builddir)/tests/scanner/.libs:$(PATH)" \
- LD_LIBRARY_PATH="$(top_builddir)/tests/scanner/.libs:$(LD_LIBRARY_PATH)" \
- $(DEBUG)
+ XDG_DATA_DIRS="$(top_srcdir)/gir:$(XDG_DATA_DIRS)" \
+ PATH="$(top_builddir)/tests/scanner/.libs:$(PATH)" \
+ CC="$(CC)" \
+ LD_LIBRARY_PATH="$(top_builddir)/tests/scanner/.libs:$(LD_LIBRARY_PATH)" \
+ $(DEBUG)
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am
index c7a1b32c..2b3188ef 100644
--- a/tests/scanner/Makefile.am
+++ b/tests/scanner/Makefile.am
@@ -221,6 +221,7 @@ PYTESTS = \
TESTS = $(CHECKGIRS) $(CHECKDOCS) $(TYPELIBS) $(PYTESTS)
TESTS_ENVIRONMENT = srcdir=$(srcdir) top_srcdir=$(top_srcdir) builddir=$(builddir) top_builddir=$(top_builddir) \
+ CC="$(CC)" \
PYTHON=$(PYTHON) UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir)
LOG_COMPILER = $(top_srcdir)/tests/gi-tester