From ccb7cc40dfa9b1eb727aa2e716bd1119dce783e3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 14 May 2013 11:42:38 -0700 Subject: [PATCH] allow configure to work with clang and openmp disabled --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 83e70de89..b0d04b2ba 100644 --- a/SConstruct +++ b/SConstruct @@ -150,8 +150,9 @@ 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" - Exit(-1) + 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" Exit(-1)