craype fix for pdt (#23505)
* craype fix for pdt adapt the pdt package for cce * fix style issues
This commit is contained in:
parent
eb273f5c2f
commit
daebf5caf8
2 changed files with 18 additions and 0 deletions
14
var/spack/repos/builtin/packages/pdt/cray_configure.patch
Normal file
14
var/spack/repos/builtin/packages/pdt/cray_configure.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
--- a/configure 2019-05-13 21:57:59.000000000 -0500
|
||||||
|
+++ b/configure 2021-03-04 10:09:56.612397173 -0600
|
||||||
|
@@ -98,6 +98,11 @@
|
||||||
|
ARCH=CRAYXMT
|
||||||
|
PLATFORM=crayxmt
|
||||||
|
echo "Looks like a Cray XMT machine..."
|
||||||
|
+ elif [ -r /opt/cray ]
|
||||||
|
+ then
|
||||||
|
+ ARCH=CRAY
|
||||||
|
+ PLATFORM=x86_64
|
||||||
|
+ echo "Looks like a Cray machine..."
|
||||||
|
else
|
||||||
|
ARCH=X86_64
|
||||||
|
PLATFORM=x86_64
|
|
@ -32,6 +32,8 @@ class Pdt(AutotoolsPackage):
|
||||||
|
|
||||||
variant('pic', default=False, description="Builds with pic")
|
variant('pic', default=False, description="Builds with pic")
|
||||||
|
|
||||||
|
patch('cray_configure.patch', when='%cce')
|
||||||
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
if spec.satisfies('%clang') or spec.satisfies('%apple-clang'):
|
if spec.satisfies('%clang') or spec.satisfies('%apple-clang'):
|
||||||
|
@ -50,6 +52,8 @@ def configure(self, spec, prefix):
|
||||||
options.append('-GNU')
|
options.append('-GNU')
|
||||||
elif self.compiler.name == 'clang':
|
elif self.compiler.name == 'clang':
|
||||||
options.append('-clang')
|
options.append('-clang')
|
||||||
|
elif self.compiler.name == 'cce':
|
||||||
|
options.append('-CC')
|
||||||
else:
|
else:
|
||||||
raise InstallError('Unknown/unsupported compiler family')
|
raise InstallError('Unknown/unsupported compiler family')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue