summaryrefslogtreecommitdiff
path: root/lib/spack/spack/compilers/gcc.py
blob: fa9da36be7de53e2b52f97aca04443e8d90337bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# This is a stub module.  It should be expanded when we implement full
# compiler support.
#

import subprocess
from spack.version import Version

cc = 'gcc'
cxx = 'g++'
fortran = 'gfortran'

def get_version():
    v = subprocess.check_output([cc, '-dumpversion'])
    return Version(v)