added: MSYS2 build for windows to readme

This commit is contained in:
Sven Vogel 2024-06-05 21:13:00 +02:00
parent aa5d0b0710
commit 2a3a4aa159
1 changed files with 14 additions and 3 deletions

View File

@ -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