metomi / fab

Flexible build system for scientific software

Home Page:https://metomi.github.io/fab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve martialling of compiler information

MatthewHambley opened this issue · comments

The way compiler properties are managed is rather hap-hazard at the moment. For each compiler we need to know things such as the argument used to specify where module files are created. Plus any special arguments needed for that compiler.

At the moment I can't find a coherent and extensible way to manage these which makes them easy to obtain and also easy to extend with new compilers.

I immediately imagine two potential solutions.

An abstract interface which specifies a compiler with concrete implementations for each supported compiler.

A generic class representing a compiler which is multiply instantiated from a configuration file.