Dumper of flang's AST into a JSON format.
There is a script for installing the required dependecies.
cmake -B build
cd build
make
The CMakeLists.txt has two targets, plugin
and tool
, use <MAKE_CMD> <target>
to build a specific target.
The target tool
has been successfully built in Ubuntu, make sure the executable flang- is in the path, as well as the path /usr/lib/llvm-<VERSION>
.
Node.js is required to build this project
# Required for all targets
sudo apt install flang-20 libflang-20-dev llvm-20-dev libmlir-20-dev mlir-20-tools
Flang 20 requires at least Ubuntu 25.04. If this distribuition is not available in WSL, you can follow these steps:
- Get the WSL image
- Import the downloaded image, e.g.,
wsl --import "Ubuntu25.04" <install_path> ubuntu-25.04-wsl-amd64.wsl
- You can check if it is installed with
wsl -l -v
- Execute the distribution with
wsl -d Ubuntu25.04