make sure that there is a C and C++ compiler. Otherwise, we generate large amounts of spurious unrelated errors.
authormathieu@mathieu.inria.fr
Wed, 14 Mar 2007 09:55:35 +0100
changeset 340 d548aca8c5af
parent 339 0ce0402e419f
child 341 126f5110aaf4
make sure that there is a C and C++ compiler. Otherwise, we generate large amounts of spurious unrelated errors.
build.py
--- a/build.py	Tue Mar 13 17:44:36 2007 +0100
+++ b/build.py	Wed Mar 14 09:55:35 2007 +0100
@@ -329,6 +329,12 @@
         self.gen_mod_config(env)
         cc = env['CC']
         cxx = env.subst(env['CXX'])
+        if cc == '':
+            print "Missing C compiler."
+            env.Exit (1);
+        if cxx == '':
+            print "Missing C++ compiler."
+            env.Exit (1);
         common_flags = ARGUMENTS.get('cflags', '').split(' ')
         cxxflags = ARGUMENTS.get('cxxflags', '').split(' ')
         ldflags = ARGUMENTS.get('ldflags', '').split(' ')