Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ def parse_meos(entry: Path, include_dir: Path) -> dict:
"-std=c11",
f"-I{include_dir}",
"-DMEOS",
# Define the MEOS ``UNUSED`` attribute macro on the command line so it is
# always in scope: the amalgamated entry point may parse a header that
# uses ``UNUSED`` (e.g. ``Datum dist UNUSED``) before temporal.h defines
# it, and an undefined ``UNUSED`` makes clang error on the declarator and
# silently drop the remaining parameters of that prototype.
"-DUNUSED=__attribute__((unused))",
])

# Collect all .h files belonging to the project
Expand Down
Loading