Skip to content

Commit

Permalink
added windows build-scripts and updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Loew committed Jan 8, 2022
1 parent 592c760 commit 9d1e193
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions build0.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

xonsh ./build1_win.sh
8 changes: 8 additions & 0 deletions build1_win.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

bash ci/version.sh
python grammar/asdl_cpp.py
python grammar/asdl_cpp.py grammar/ASR.asdl src/libasr/asr.h
pushd src/lfortran/parser && re2c -W -b tokenizer.re -o tokenizer.cpp && popd
pushd src/lfortran/parser && re2c -W -b preprocessor.re -o preprocessor.cpp && popd
pushd src/lfortran/parser && bison -Wall -d -r all parser.yy && popd
13 changes: 2 additions & 11 deletions doc/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,9 @@ Launch a Conda command interpreter and run the following commands:
conda update -q conda
conda install -c conda-forge python=3.7 re2c m2-bison xonsh llvmdev=11.1.0 jupyter xeus=1.0.1 xtl nlohmann_json cppzmq jupyter_kernel_test pytest
```
Next, from the Conda prompt, launch an `xonsh`-shell:
Next, `cd` to the root of the repository and run
```bash
xonsh
```
and `cd`` to the root of the repository and run
```bash
bash ci/version.sh
python grammar/asdl_cpp.py
python grammar/asdl_cpp.py grammar/ASR.asdl src/libasr/asr.h
pushd src/lfortran/parser && re2c -W -b tokenizer.re -o tokenizer.cpp && popd
pushd src/lfortran/parser && re2c -W -b preprocessor.re -o preprocessor.cpp && popd
pushd src/lfortran/parser && bison -Wall -d -r all parser.yy && popd
.\build0.bat
```

Now, you can launch Visual Studio and open the LFortran folder.
Expand Down

0 comments on commit 9d1e193

Please sign in to comment.