ffi-flang-zig

FFI flang-new runtime with Zig

APACHE-2.0 License

Stars
0
Committers
1

ffi-flang-zig

FFI between Fortran runtime and Zig

LLVM/flang v18.1.7 files are included in this repository.

Inspired by sourceryinstitute/ISO_Fortran_binding. However, for LLVM-based only!

Requires

How to use

Build docker and run image:

$ docker build -t flang-zig -f .devcontainer/Dockerfile
$ docker run -it --rm -v $(pwd):/app -w /app flang-zig bash

Build help

Project-Specific Options:
  -Doptimize=[enum]            Prioritize performance, safety, or binary size
                                 Supported Values:
                                   Debug
                                   ReleaseSafe
                                   ReleaseFast
                                   ReleaseSmall
  -Dtarget=[string]            The CPU architecture, OS, and ABI to build for
  -Dcpu=[string]               Target CPU features to add or subtract
  -Ddynamic-linker=[string]    Path to interpreter on the target system
  -Dshared=[bool]              Build as shared library [default: false]
  -Damalgamation=[bool]        Build as amalgamation [default: false]
  -Denable-tests=[bool]        Build tests [default: false]