Skip to content

Commit

Permalink
Write compiler/mpilib/debug info from configure.
Browse files Browse the repository at this point in the history
This allows users to use the default compiler/mpilib/debug settings by
sourcing `.env_mach_specific.sh`.
  • Loading branch information
quantheory committed Aug 25, 2016
1 parent 7a520f5 commit 0a051b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/configure
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ def _main():
for shell in ('sh', 'csh'):
ems_file.make_env_mach_specific_file(opts['compiler'], opts['debug'],
opts['mpilib'], shell)
shell_path = os.path.join(output_dir, ".env_mach_specific." + shell)
with open(shell_path, 'a') as shell_file:
shell_file.write("\nexport COMPILER=%s\n" % opts['compiler'])
shell_file.write("export MPILIB=%s\n" % opts['mpilib'])
shell_file.write("export DEBUG=%s\n" % repr(opts['debug']).upper())


if __name__ == "__main__":
Expand Down

0 comments on commit 0a051b4

Please sign in to comment.