diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-05-19 16:07:42 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-06-22 12:49:34 -0700 |
commit | f78475711343a98b1f0e756d6c39df87802c25c8 (patch) | |
tree | 5da8229e1c885af863b6b29fa7bcebbdf3119c55 /bin | |
parent | ed6454fe78c8de2efb08d3c85e41fddd6fe704fb (diff) | |
download | spack-f78475711343a98b1f0e756d6c39df87802c25c8.tar.gz spack-f78475711343a98b1f0e756d6c39df87802c25c8.tar.bz2 spack-f78475711343a98b1f0e756d6c39df87802c25c8.tar.xz spack-f78475711343a98b1f0e756d6c39df87802c25c8.zip |
Initial ability to swap compilers.
Fixes SPACK-16 and forces compiler script to build using compiler wrappers.
- works with gcc and clang on laptop.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spack | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -41,7 +41,7 @@ sys.path.insert(0, SPACK_LIB_PATH) # If there is no working directory, use the spack prefix. try: - os.getcwd() + working_dir = os.getcwd() except OSError: os.chdir(SPACK_PREFIX) @@ -79,6 +79,7 @@ args = parser.parse_args() # Set up environment based on args. spack.verbose = args.verbose spack.debug = args.debug +spack.spack_working_dir = working_dir if args.mock: from spack.packages import PackageDB spack.db = PackageDB(spack.mock_packages_path) |