summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNichols A. Romero <naromero77@users.noreply.github.com>2019-10-12 12:30:43 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-12 12:30:43 -0500
commitebb5ce4b69683c7ff87e100ee651e82ded66cb3d (patch)
tree6eeb3ac194df5bbde952afff39cd8d119f29d0a3
parent64bdc3251f86667cfe1df533ee8638e73514c540 (diff)
downloadspack-ebb5ce4b69683c7ff87e100ee651e82ded66cb3d.tar.gz
spack-ebb5ce4b69683c7ff87e100ee651e82ded66cb3d.tar.bz2
spack-ebb5ce4b69683c7ff87e100ee651e82ded66cb3d.tar.xz
spack-ebb5ce4b69683c7ff87e100ee651e82ded66cb3d.zip
F18 Oct2019 Minor Update (#13192)
* Minor clean-up of package information. * Add variants, fix dependencies, and add conflicts for compilers that do not support C++17. * Correct dependency type for CMake.
-rw-r--r--var/spack/repos/builtin/packages/f18/package.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/f18/package.py b/var/spack/repos/builtin/packages/f18/package.py
index 3b0a4d8b4f..fce4359cf0 100644
--- a/var/spack/repos/builtin/packages/f18/package.py
+++ b/var/spack/repos/builtin/packages/f18/package.py
@@ -10,10 +10,24 @@ class F18(CMakePackage):
"""F18 is a front-end for Fortran intended to replace the existing front-end
in the Flang compiler"""
+ # Package information
homepage = "https://github.com/flang-compiler/f18"
-
- git = "https://github.com/flang-compiler/f18"
+ git = "https://github.com/flang-compiler/f18.git"
version('master', branch='master')
- depends_on('llvm@6.0.0+clang', when='@master')
+ # Variants
+ variant('build_type', default='Release',
+ description='The build type to build',
+ values=('Debug', 'Release', 'RelWithDebInfo'))
+
+ # Dependencies
+ depends_on('cmake@3.9.0:', type='build')
+ depends_on('llvm+clang@7:')
+
+ # Conflicts
+ compiler_warning = 'F18 requires a compiler with support for C++17'
+ conflicts('%clang@:6', msg=compiler_warning)
+ conflicts('%gcc@:7.1', msg=compiler_warning)
+ conflicts('%intel', msg=compiler_warning)
+ conflicts('%pgi', msg=compiler_warning)