Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

languages that have compilers hard-coded #954

Open
trws opened this issue May 14, 2016 · 2 comments
Open

languages that have compilers hard-coded #954

trws opened this issue May 14, 2016 · 2 comments

Comments

@trws
Copy link
Contributor

trws commented May 14, 2016

Despite this chunk of Compiler from compiler.py, there are, in fact, compiled languages other than c, c++ and fortran77/90...

class Compiler(object):
    """This class encapsulates a Spack "compiler", which includes C,
       C++, and Fortran compilers.  Subclasses should implement
       support for specific compilers, their possible names, arguments,
       and how to identify the particular type of compiler."""

    # Subclasses use possible names of C compiler
    cc_names = []

    # Subclasses use possible names of C++ compiler
    cxx_names = []

    # Subclasses use possible names of Fortran 77 compiler
    f77_names = []

    # Subclasses use possible names of Fortran 90 compiler
    fc_names = []

It would be good if there were a way to register a new language group, rather than having only hard-coded languages. Specifically I would want to add support for go, rust, maybe objective c, probably haskell at some point, almost all of which support multiple compiler implementations, some of which may be available externally. Golang is actually the perfect example, the "go" package needs a go compiler to bootstrap, but can support either gccgo or the plan-9 descendant compilers. The only way to make this work right now is to have go depend on the gcc package, which will probably have to grow a golang variant at some point.

@adamjstewart
Copy link
Member

Ten thumbs up. Compilers should be a "dependency" just like any other package. There are more than 4 languages in the world.

@alalazo
Copy link
Member

alalazo commented Nov 22, 2017

relates to #896

@alalazo alalazo self-assigned this Apr 13, 2018
olupton pushed a commit to olupton/spack that referenced this issue Feb 7, 2022
Packages updated:
dask 2.30.0
distributed 2.30.1
dask-mpi 2.21.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants