hiker / fab_new

BOM version of the flexible build system for scientific software
https://metoffice.github.io/fab/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Compiler wrapper #16

Closed hiker closed 1 month ago

hiker commented 2 months ago

Adds proper compiler wrapper, which also fixes issues with old implementation of mpi.. wrapper.

hiker commented 1 month ago

This adds CompilerWrapper implemented using a Decorator pattern (not in terms of Python decorators, just very explicit). It means esp. that wrapper like mpif90 and the 'wrapped' compiler now share compiler flags (so a site only needs to define compiler flags for say ifort, but can then use mpif90 as a wrapper around ifort to get the same flags).

hiker commented 1 month ago

Ready for next review.