Skip to content

Commit

Permalink
'spack compiler add' resolves relative path to absolute path (spack#1…
Browse files Browse the repository at this point in the history
…1792)

Fixes spack#11782

Spack was not properly resolving relative paths to absolute paths
when a relative path was passed to "spack compiler add [PATH]".
Now, if provided a relative path, the absolute path is written to
compilers.yaml rather than the relative path.
  • Loading branch information
carsonwoods authored and scheibelp committed Jul 12, 2019
1 parent d01d79e commit 76f1ee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/spack/llnl/util/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,7 @@ def search_paths_for_executables(*path_hints):
if not os.path.isdir(path):
continue

path = os.path.abspath(path)
executable_paths.append(path)

bin_dir = os.path.join(path, 'bin')
Expand Down

0 comments on commit 76f1ee5

Please sign in to comment.