Don't traceback on missing mpic++
This commit is contained in:
@@ -2,11 +2,14 @@
|
||||
import sys
|
||||
import subprocess
|
||||
import Options
|
||||
|
||||
from waflib.Errors import WafError
|
||||
|
||||
def configure(conf):
|
||||
env = conf.env
|
||||
conf.find_program('mpic++', var='MPI')
|
||||
try:
|
||||
conf.find_program('mpic++', var='MPI')
|
||||
except WafError:
|
||||
return
|
||||
if Options.options.enable_mpi and conf.env['MPI']:
|
||||
p = subprocess.Popen([conf.env['MPI'], '-showme:compile'], stdout=subprocess.PIPE)
|
||||
flags = p.stdout.read().rstrip().split()
|
||||
|
||||
Reference in New Issue
Block a user