Error out when no compiler found
authorRyan Dahl <ry@tinyclouds.org>
Tue, 12 Jan 2010 00:43:10 +0000 (16:43 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 12 Jan 2010 00:43:10 +0000 (16:43 -0800)
wscript

diff --git a/wscript b/wscript
index 1224442..88ce61e 100644 (file)
--- a/wscript
+++ b/wscript
@@ -101,7 +101,9 @@ def conf_subproject (conf, subdir, command=None):
 
 def configure(conf):
   conf.check_tool('compiler_cxx')
+  if not conf.env.CXX: conf.fatal('c++ compiler not found')
   conf.check_tool('compiler_cc')
+  if not conf.env.CC: conf.fatal('c compiler not found')
 
   conf.env["USE_DEBUG"] = Options.options.debug