Skip to content
Snippets Groups Projects
Commit 663b30b3 authored by Gregory Becker's avatar Gregory Becker Committed by Todd Gamblin
Browse files

Update target autodetection for linux platform

parent 6bb31a9a
No related branches found
No related tags found
No related merge requests found
import subprocess
import platform
from spack.architecture import Platform, Target
from spack.operating_systems.linux_distro import LinuxDistro
class Linux(Platform):
priority = 90
front_end = 'x86_64'
back_end = 'x86_64'
default = 'x86_64'
def __init__(self):
super(Linux, self).__init__('linux')
self.add_target('x86_64', Target('x86_64'))
self.add_target('ppc64le', Target('ppc64le'))
self.default = platform.machine()
self.front_end = platform.machine()
self.back_end = platform.machine()
if self.default not in self.targets:
self.add_target(self.default, Target(self.default))
linux_dist = LinuxDistro()
self.default_os = str(linux_dist)
self.front_os = self.default_os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment