From 6f4566aec76f28e7c78b6d8837dc07fc28c47327 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 14 Mar 2007 09:55:35 +0100 Subject: [PATCH] make sure that there is a C and C++ compiler. Otherwise, we generate large amounts of spurious unrelated errors. --- build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.py b/build.py index 89e130083..5987df284 100644 --- a/build.py +++ b/build.py @@ -329,6 +329,12 @@ class Ns3: 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(' ')