mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: when using the C++ compiler, use its flags too.
* tests/local.at: Go for colors. (--compile-c-with-cxx): New option. We used to pass "CC=$CXX" as command line argument, but it was not possible to adjust CFLAGS accordingly in atlocal, since it is loaded before assignments on the command line are honored (so that the command line takes precedence). * tests/atlocal.in: Implement it. * tests/local.mk: Use it.
This commit is contained in:
@@ -97,8 +97,8 @@ installcheck-local: $(RUN_TESTSUITE_deps)
|
||||
|
||||
# Be real mean with it.
|
||||
.PHONY: maintainer-check-g++
|
||||
$(RUN_TESTSUITE) CC='$(CXX)'
|
||||
maintainer-check-g++: $(RUN_TESTSUITE_deps)
|
||||
$(RUN_TESTSUITE) --compile-c-with-cxx
|
||||
|
||||
.PHONY: maintainer-check-posix
|
||||
maintainer-check-posix: $(RUN_TESTSUITE_deps)
|
||||
|
||||
Reference in New Issue
Block a user