From 96535936a596fdd29cf5c63da861ef8162cf0177 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Thu, 17 May 2007 14:22:27 +0100 Subject: [PATCH] Make WAF check for the abstract tool 'compiler_cxx', instead of manually checking for multiple compilers. --- wscript | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wscript b/wscript index a15f4e78a..9e4d993d2 100644 --- a/wscript +++ b/wscript @@ -71,8 +71,7 @@ def init(): def set_options(opt): # options provided by the modules - if not opt.tool_options('msvc'): - opt.tool_options('g++') + opt.tool_options('compiler_cxx') opt.add_option('--enable-gcov', help=('Enable code coverage analysis'), @@ -95,9 +94,8 @@ def set_options(opt): def configure(conf): - if not conf.check_tool('msvc'): - if not conf.check_tool('g++'): - Params.fatal("No suitable compiler found") + if not conf.check_tool('compiler_cxx'): + Params.fatal("No suitable compiler found") # create the second environment, set the variant and set its name