From 2a3a4aa1590dab6ffe32aed7e61e22586a73e19b Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 5 Jun 2024 21:13:00 +0200 Subject: [PATCH] added: MSYS2 build for windows to readme --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index faca249..2c93aad 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,26 @@ # Gemstone -Gemstone is a programming language compiler written in C with lex and yacc. +Gemstone is a programming language compiler written in C based on flex and GNU bison. +Is uses LLVM to produce optimized native binaries for many platforms. ## Dependencies (build) ### Windows 11 -For setup instruction see issue #30 +#### MSYS2 +Install MSYS2 under Windows 11. Open the MingGW64 environment. Requires: +Install the following packages: - Microsoft Build Tools 2022 (includes: CMake, MSVC) +``` - WinFlexBison [find it here](https://github.com/lexxmark/winflexbison) (needs to be in PATH) - +pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-glib2 bison flex mingw-w64-x86_64-llvm cmake git make +``` +Clone the repository and build the gemstone compiler: +``` +cmake . && make release +``` ### GNU/Linux Requires: @@ -20,6 +29,8 @@ Requires: - Make - bison - flex +- LLVM +- Glib 2.0 ## Writing Tests