[vala/staging] testrunner: Pass buildsystem's CC through to valac
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] testrunner: Pass buildsystem's CC through to valac
- Date: Mon, 19 Nov 2018 17:41:36 +0000 (UTC)
commit 180a2ea304f32b74c474ead85dd6fcdd32a0a74c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Nov 19 18:05:24 2018 +0100
testrunner: Pass buildsystem's CC through to valac
tests/Makefile.am | 8 ++++----
tests/testrunner.sh | 1 +
valadoc/tests/Makefile.am | 4 ++--
valadoc/tests/testrunner.sh | 1 +
4 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 57c95f9c8..4ac9b94dc 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -17,7 +17,7 @@ BUILT_SOURCES = \
noinst_PROGRAMS = \
$(NULL)
-TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' $(srcdir)/testrunner.sh
+TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' CC='$(CC)' $(srcdir)/testrunner.sh
TESTS = \
basic-types/integers.vala \
@@ -647,13 +647,13 @@ LINUX_TESTS = \
$(NULL)
check-TESTS: $(TESTS) $(NON_NULL_TESTS)
- @EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' \
+ @EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' CC='$(CC)' \
$(srcdir)/testrunner.sh $(TESTS)
if HAVE_LINUX
- @EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' \
+ @EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' CC='$(CC)' \
VALAFLAGS="--pkg linux" $(srcdir)/testrunner.sh $(LINUX_TESTS)
endif
- @EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' \
+ @EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' CC='$(CC)' \
VALAFLAGS="--enable-experimental-non-null" $(srcdir)/testrunner.sh $(NON_NULL_TESTS)
EXTRA_DIST = \
diff --git a/tests/testrunner.sh b/tests/testrunner.sh
index f90cba7bc..129fff322 100755
--- a/tests/testrunner.sh
+++ b/tests/testrunner.sh
@@ -33,6 +33,7 @@ VALAFLAGS="$VALAFLAGS \
--disable-warnings \
--main main \
--save-temps \
+ --cc $CC \
-X -g \
-X -O0 \
-X -pipe \
diff --git a/valadoc/tests/Makefile.am b/valadoc/tests/Makefile.am
index f7cdf73f8..e1fda6383 100644
--- a/valadoc/tests/Makefile.am
+++ b/valadoc/tests/Makefile.am
@@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.common
NULL =
TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) PACKAGE_SUFFIX=$(PACKAGE_SUFFIX) TOPBUILDDIR=$(abs_top_builddir)
TOPSRCDIR=$(abs_top_srcdir) \
- CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' TEST_CFLAGS='$(TEST_CFLAGS)'
$(srcdir)/testrunner.sh
+ CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' TEST_CFLAGS='$(TEST_CFLAGS)'
CC='$(CC)' $(srcdir)/testrunner.sh
TESTS = \
libvaladoc/errorreporter.vala \
@@ -18,7 +18,7 @@ TESTS = \
check-TESTS: $(TESTS)
@EXEEXT=$(EXEEXT) PACKAGE_SUFFIX=$(PACKAGE_SUFFIX) TOPBUILDDIR=$(abs_top_builddir)
TOPSRCDIR=$(abs_top_srcdir) \
- CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' TEST_CFLAGS='$(TEST_CFLAGS)'
$(srcdir)/testrunner.sh $(TESTS)
+ CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)' TEST_CFLAGS='$(TEST_CFLAGS)'
CC='$(CC)' $(srcdir)/testrunner.sh $(TESTS)
G_DEBUG=fatal_warnings $(builddir)/driver
AM_CFLAGS = \
diff --git a/valadoc/tests/testrunner.sh b/valadoc/tests/testrunner.sh
index 60609f757..de45e4519 100755
--- a/valadoc/tests/testrunner.sh
+++ b/valadoc/tests/testrunner.sh
@@ -38,6 +38,7 @@ VALAFLAGS="$VALAFLAGS \
--disable-warnings \
--main main \
--save-temps \
+ --cc $CC \
-X -g \
-X -O0 \
-X -pipe \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]