From 2bf62c1dbb191861fe50d3c71e6a51372d46327e Mon Sep 17 00:00:00 2001 From: John Koleszar Date: Tue, 22 May 2012 11:51:14 -0700 Subject: [PATCH] Enable unit tests by default Build unit tests by default if there is a working C++ toolchain available. Change-Id: I511558339b332fadfde37ef01b2dbf2755f48f89 --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure b/configure index 2b1328d..eed6f97 100755 --- a/configure +++ b/configure @@ -586,6 +586,16 @@ process_toolchain() { if enabled postproc_visualizer; then enabled postproc || die "postproc_visualizer requires postproc to be enabled" fi + + # Enable unit tests if we have a working C++ compiler + case "$tgt_cc" in + vs*) + soft_enable unit_tests;; + *) + check_cxx "$@" <