make sure that there is a C and C++ compiler. Otherwise, we generate large amounts of spurious unrelated errors.

Unknown 2007-03-14 09:55:35 +01:00
parent 31adc9851a
commit 6f4566aec7
1 changed files with 6 additions and 0 deletions

View File

@ -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(' ')