Skip to content

Commit

Permalink
jit compilation for CPP/C++: allow more file suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSt98 committed Oct 5, 2024
1 parent 2c6e131 commit 519e1df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loki/build/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ class Obj:
A single source object representing a single C or Fortran source file.
"""

MODEMAP = {'.f90': 'f90', '.f': 'f', '.c': 'c', '.cc': 'c', '.cpp': 'cpp'}
MODEMAP = {'.f90': 'f90', '.f': 'f', '.c': 'c', '.cc': 'c', '.cpp': 'cpp',
'.CC': 'cpp', '.cxx': 'cpp'}

# Default source and header extension recognized
# TODO: Make configurable!
_ext = ['.f90', '.F90', '.f', '.F', '.c', '.cpp']
_ext = ['.f90', '.F90', '.f', '.F', '.c', '.cpp', '.CC', '.cc', '.cxx']

def __new__(cls, *args, name=None, **kwargs): # pylint: disable=unused-argument
# Name is either provided or inferred from source_path
Expand Down

0 comments on commit 519e1df

Please sign in to comment.