mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
Use a more idiomatic approach for I/O using `llvm::SourceManager` to manage input files and `mlir::openOutputFile` to write to the output. This commit prepares management of diagnostics in subsequent changes.
Building the compiler
Generate the compiler build system, in the build directory
cmake -B build . -DLLVM_DIR=$LLVM_PROJECT/build/lib/cmake/llvm -DMLIR_DIR=$LLVM_PROJECT/build/lib/cmake/mlir
Build the compiler
make -C build/ zamacompiler
Run the compiler
./build/src/zamacompiler