Removing f18 package. (#19307)

This commit is contained in:
Nichols A. Romero 2020-10-14 13:44:22 -05:00 committed by GitHub
parent 72f431b67b
commit 71d2ce7403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,59 +0,0 @@
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
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"
version('master', branch='master')
# Variants
variant('build_type', default='Release',
description='The build type to build',
values=('Debug', 'Release', 'RelWithDebInfo'))
variant('fir', default='False', description='Build with support for FIR')
# Dependencies
depends_on('cmake@3.9.0:', type='build')
depends_on('llvm+clang@9:', when='~fir')
depends_on('llvm+clang+mlir@10.0.1:', when='+fir')
# Conflicts
compiler_warning = 'F18 requires a compiler with support for C++17'
# See https://en.wikipedia.org/wiki/Xcode#Latest_versions for a
# conversion table from LLVM versions to Apple's Clang
conflicts('%apple-clang@:10.1', msg=compiler_warning)
conflicts('%clang@:6', msg=compiler_warning)
conflicts('%gcc@:7.1', msg=compiler_warning)
conflicts('%intel', msg=compiler_warning)
conflicts('%pgi', msg=compiler_warning)
def cmake_args(self):
spec = self.spec
args = ['-DLLVM_DIR=%s' % self.spec['llvm'].prefix.lib.cmake.llvm]
# Tests have linking errors with older compilers (before GCC 8.x).
# Don't build tests for now.
# https://bugs.llvm.org/show_bug.cgi?id=45463
if self.run_tests:
args.append('-DFLANG_INCLUDE_TESTS:BOOL=ON')
else:
args.append('-DFLANG_INCLUDE_TESTS:BOOL=OFF')
if '+fir' in spec:
args.append('-DLINK_WITH_FIR:BOOL=ON')
args.append(
'-DMLIR_DIR=%s' % self.spec['llvm'].prefix.lib.cmake.mlir)
else:
args.append('-DLINK_WITH_FIR:BOOL=OFF')
return args