diff options
author | Gregory Becker <becker33@llnl.gov> | 2016-07-18 15:43:21 -0700 |
---|---|---|
committer | Gregory Becker <becker33@llnl.gov> | 2016-07-18 15:43:21 -0700 |
commit | 218fc602fad2caf88b5e71c640b1569e5ab408da (patch) | |
tree | 2fec3c38745b985a460cc8a88553d1a73094369a /lib | |
parent | 46ee4a3a5360010e77f77f201ffd5e4289516cc4 (diff) | |
download | spack-218fc602fad2caf88b5e71c640b1569e5ab408da.tar.gz spack-218fc602fad2caf88b5e71c640b1569e5ab408da.tar.bz2 spack-218fc602fad2caf88b5e71c640b1569e5ab408da.tar.xz spack-218fc602fad2caf88b5e71c640b1569e5ab408da.zip |
Let packages call use_cray_compilers() in install to get , etc set to cray names
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/spack/env/cc | 4 | ||||
l--------- | lib/spack/env/craype/CC | 1 | ||||
l--------- | lib/spack/env/craype/cc | 1 | ||||
l--------- | lib/spack/env/craype/ftn | 1 | ||||
-rw-r--r-- | lib/spack/spack/package.py | 7 |
5 files changed, 12 insertions, 2 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index bf98b4c354..c6bb50d261 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -110,13 +110,13 @@ case "$command" in comp="CXX" lang_flags=CXX ;; - f90|fc|f95|gfortran|ifort|pgfortran|xlf90|nagfor) + ftn|f90|fc|f95|gfortran|ifort|pgfortran|xlf90|nagfor) command="$SPACK_FC" language="Fortran 90" comp="FC" lang_flags=F ;; - f77|gfortran|ifort|pgfortran|xlf|nagfor) + f77|gfortran|ifort|pgfortran|xlf|nagfor|ftn) command="$SPACK_F77" language="Fortran 77" comp="F77" diff --git a/lib/spack/env/craype/CC b/lib/spack/env/craype/CC new file mode 120000 index 0000000000..82c2b8e90a --- /dev/null +++ b/lib/spack/env/craype/CC @@ -0,0 +1 @@ +../cc
\ No newline at end of file diff --git a/lib/spack/env/craype/cc b/lib/spack/env/craype/cc new file mode 120000 index 0000000000..82c2b8e90a --- /dev/null +++ b/lib/spack/env/craype/cc @@ -0,0 +1 @@ +../cc
\ No newline at end of file diff --git a/lib/spack/env/craype/ftn b/lib/spack/env/craype/ftn new file mode 120000 index 0000000000..82c2b8e90a --- /dev/null +++ b/lib/spack/env/craype/ftn @@ -0,0 +1 @@ +../cc
\ No newline at end of file diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 6a92c548fb..c916bfaaa2 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1439,6 +1439,13 @@ def install_dependency_symlinks(pkg, spec, prefix): flatten_dependencies(spec, prefix) +def use_cray_compiler_names(): + """Compiler names for builds that rely on cray compiler names.""" + os.environ['CC'] = 'cc' + os.environ['CXX'] = 'CC' + os.environ['FC'] = 'ftn' + os.environ['F77'] = 'ftn' + def flatten_dependencies(spec, flat_dir): """Make each dependency of spec present in dir via symlink.""" for dep in spec.traverse(root=False): |