]> git.saurik.com Git - bison.git/blobdiff - tests/local.at
tests: when using the C++ compiler, use its flags too.
[bison.git] / tests / local.at
index a8b38762e259c205ff757693416fc41656e57121..2e975d0afb5b9b11a59b33ce2efdea864ae96483 100644 (file)
@@ -634,4 +634,15 @@ m4_popdef([AT_COND_CASE])])
 
 AT_INIT
 
+# Cannot assign CC and CFLAGS here, since atlocal is loaded after
+# options are processed, so we don't know the value of CXX and
+# CXXFLAGS yet.
+#
+# Note that it also means that command line values for CXX and
+# CXXFLAGS will not be propagated to CC and CFLAGS.
+AT_ARG_OPTION([compile-c-with-cxx],
+              [compile C parsers with the C++ compiler])
+
+AT_COLOR_TESTS
+
 AT_TESTED([bison])