Skip to content

Commit

Permalink
clean should not look for mpilibs
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed May 4, 2018
1 parent 69ddf88 commit 2fe2a8a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions tools/configure
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ def parse_command_line(args):
% compiler)
opts['compiler'] = compiler
opts['os'] = machobj.get_value('OS')

if args.clean:
files = ["Macros.make", "Macros.cmake", "env_mach_specific.xml", ".env_mach_specific.sh",
".env_mach_specific.csh", "Depends.%s"%compiler, "Depends.%s"%args.machine,
"Depends.%s.%s"%(args.machine,compiler)]
for file_ in files:
if os.path.isfile(file_):
logger.warn("Removing file %s"%file_)
os.remove(file_)
if argcnt == 2:
opts['clean_only'] = True
return opts

# Set MPI library.
if args.mpilib is not None:
mpilib = args.mpilib
Expand All @@ -134,17 +147,6 @@ def parse_command_line(args):
opts['debug'] = debug


if args.clean:
files = ["Macros.make", "Macros.cmake", "env_mach_specific.xml", ".env_mach_specific.sh",
".env_mach_specific.csh", "Depends.%s"%compiler, "Depends.%s"%args.machine,
"Depends.%s.%s"%(args.machine,compiler)]
for file_ in files:
if os.path.isfile(file_):
logger.warn("Removing file %s"%file_)
os.remove(file_)
if argcnt == 2:
opts['clean_only'] = True

return opts

def _main():
Expand Down

0 comments on commit 2fe2a8a

Please sign in to comment.