packages: minor improvements for compiler packages (#50111)
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
parent
d39382bec8
commit
5e7925c502
@ -25,6 +25,8 @@ packages:
|
|||||||
glu: [apple-glu]
|
glu: [apple-glu]
|
||||||
unwind: [apple-libunwind]
|
unwind: [apple-libunwind]
|
||||||
uuid: [apple-libuuid]
|
uuid: [apple-libuuid]
|
||||||
|
apple-clang:
|
||||||
|
buildable: false
|
||||||
apple-gl:
|
apple-gl:
|
||||||
buildable: false
|
buildable: false
|
||||||
externals:
|
externals:
|
||||||
|
@ -72,6 +72,8 @@ packages:
|
|||||||
permissions:
|
permissions:
|
||||||
read: world
|
read: world
|
||||||
write: user
|
write: user
|
||||||
|
cce:
|
||||||
|
buildable: false
|
||||||
cray-fftw:
|
cray-fftw:
|
||||||
buildable: false
|
buildable: false
|
||||||
cray-libsci:
|
cray-libsci:
|
||||||
@ -86,6 +88,8 @@ packages:
|
|||||||
buildable: false
|
buildable: false
|
||||||
essl:
|
essl:
|
||||||
buildable: false
|
buildable: false
|
||||||
|
fj:
|
||||||
|
buildable: false
|
||||||
fujitsu-mpi:
|
fujitsu-mpi:
|
||||||
buildable: false
|
buildable: false
|
||||||
fujitsu-ssl2:
|
fujitsu-ssl2:
|
||||||
@ -102,3 +106,5 @@ packages:
|
|||||||
buildable: false
|
buildable: false
|
||||||
spectrum-mpi:
|
spectrum-mpi:
|
||||||
buildable: false
|
buildable: false
|
||||||
|
xl:
|
||||||
|
buildable: false
|
||||||
|
@ -23,3 +23,5 @@ packages:
|
|||||||
mpi:
|
mpi:
|
||||||
require:
|
require:
|
||||||
- one_of: [msmpi]
|
- one_of: [msmpi]
|
||||||
|
msvc:
|
||||||
|
buildable: false
|
||||||
|
@ -12,6 +12,8 @@ class Cce(Package, CompilerPackage):
|
|||||||
homepage = "https://cpe.ext.hpe.com/docs/cce/index.html"
|
homepage = "https://cpe.ext.hpe.com/docs/cce/index.html"
|
||||||
url = "https://cpe.ext.hpe.com/docs/cce/index.html"
|
url = "https://cpe.ext.hpe.com/docs/cce/index.html"
|
||||||
|
|
||||||
|
has_code = False
|
||||||
|
|
||||||
compiler_languages = ["c", "cxx", "fortran"]
|
compiler_languages = ["c", "cxx", "fortran"]
|
||||||
c_names = ["craycc"]
|
c_names = ["craycc"]
|
||||||
cxx_names = ["crayCC"]
|
cxx_names = ["crayCC"]
|
||||||
|
@ -19,6 +19,8 @@ class Fj(Package, CompilerPackage):
|
|||||||
provides("c", "cxx")
|
provides("c", "cxx")
|
||||||
provides("fortran")
|
provides("fortran")
|
||||||
|
|
||||||
|
has_code = False
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
raise InstallError(
|
raise InstallError(
|
||||||
"Fujitsu compilers are not installable yet, but can be "
|
"Fujitsu compilers are not installable yet, but can be "
|
||||||
|
@ -31,6 +31,8 @@ class Msvc(Package, CompilerPackage):
|
|||||||
|
|
||||||
homepage = "https://visualstudio.microsoft.com/vs/features/cplusplus/"
|
homepage = "https://visualstudio.microsoft.com/vs/features/cplusplus/"
|
||||||
|
|
||||||
|
has_code = False
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
raise InstallError(
|
raise InstallError(
|
||||||
"MSVC compilers are not installable with Spack, but can be "
|
"MSVC compilers are not installable with Spack, but can be "
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
||||||
|
import glob
|
||||||
import os.path
|
import os.path
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
@ -640,5 +641,23 @@ def libs(self):
|
|||||||
|
|
||||||
return find_libraries(libs, root=prefix, recursive=True)
|
return find_libraries(libs, root=prefix, recursive=True)
|
||||||
|
|
||||||
|
def _cc_path(self):
|
||||||
|
candidates = glob.glob(f"{self.prefix}/**/{self.spec.version}/compilers/bin/nvc")
|
||||||
|
if not candidates:
|
||||||
|
return None
|
||||||
|
return candidates[0]
|
||||||
|
|
||||||
|
def _cxx_path(self):
|
||||||
|
candidates = glob.glob(f"{self.prefix}/**/{self.spec.version}/compilers/bin/nvc++")
|
||||||
|
if not candidates:
|
||||||
|
return None
|
||||||
|
return candidates[0]
|
||||||
|
|
||||||
|
def _fortran_path(self):
|
||||||
|
candidates = glob.glob(f"{self.prefix}/**/{self.spec.version}/compilers/bin/nvfortran")
|
||||||
|
if not candidates:
|
||||||
|
return None
|
||||||
|
return candidates[0]
|
||||||
|
|
||||||
# Avoid binding stub libraries by absolute path
|
# Avoid binding stub libraries by absolute path
|
||||||
non_bindable_shared_objects = ["stubs"]
|
non_bindable_shared_objects = ["stubs"]
|
||||||
|
@ -14,6 +14,8 @@ class Xl(Package, CompilerPackage):
|
|||||||
|
|
||||||
homepage = "https://www.ibm.com/support/knowledgecenter/SSXVZZ_16.1.1/com.ibm.compilers.linux.doc/welcome.html"
|
homepage = "https://www.ibm.com/support/knowledgecenter/SSXVZZ_16.1.1/com.ibm.compilers.linux.doc/welcome.html"
|
||||||
|
|
||||||
|
has_code = False
|
||||||
|
|
||||||
variant("r", default=True, description="The _r version of compilers")
|
variant("r", default=True, description="The _r version of compilers")
|
||||||
|
|
||||||
provides("c", "cxx")
|
provides("c", "cxx")
|
||||||
|
Loading…
Reference in New Issue
Block a user