mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Details: LFortran is a modern open-source (BSD licensed) interactive Fortran compiler built on top of LLVM. See, https://lfortran.org for more details. There was an interest in the community to add the compiler into the Compiler Explorer: https://github.com/lfortran/lfortran/issues/623. So, this PR adds it. LFortran is in alpha (the source code compiles to binary and execute. But, users are expected that their code can break). It can emits AST, ASR, LLVM, C, C++, WAT, Julia, Fortran, etc. It has multiple backend like LLVM (default), C, C++, x86, WASM, fortran and mlir. For more options run `--help`. Changes in this PR: - Add LFortran as a new Fortran compiler. - `-g` options is enabled by default in `optionsForFilter`. Providing an option to disabling it helps other compilers (that doesn't have complete support for debug information) to compile successfully