Merge pull request #628 from springmeyer/scons-clang-avoid-exit

Allow configure to work with clang and openmp disabled
This commit is contained in:
Dennis Luxen 2013-05-14 13:04:40 -07:00
commit cc73ed19b3

View File

@ -150,7 +150,8 @@ if GetOption('buildconfiguration') != 'debug' and sys.platform != 'darwin' and G
env.Append(CCFLAGS = ['-march=native'])
if not conf.CheckHeader('omp.h'):
print "Compiler does not support OpenMP. Exiting"
if "clang" not in env["CXX"]:
print "OpenMP not found, Exiting"
Exit(-1)
if not conf.CheckLibWithHeader('bz2', 'bzlib.h', 'CXX'):
print "bz2 library not found. Exiting"