Skip to content

Commit

Permalink
Add Windows bat build files
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jul 29, 2019
1 parent 9248941 commit 7b12369
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
call build0.bat
call build1.bat
5 changes: 5 additions & 0 deletions build0.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python grammar\asdl_py.py
python grammar\asdl_py.py grammar\ASR.asdl lfortran\asr\asr.py ..ast.utils
cd grammar
call antlr4 -Dlanguage=Python3 -no-listener -visitor fortran.g4 -o ..\lfortran\parser
cd ..
7 changes: 7 additions & 0 deletions build1.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cmake ^
-DCMAKE_INSTALL_PREFIX=%cd% ^
-DCMAKE_GENERATOR_PLATFORM=x64 ^
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE ^
.

cmake --build . --target install

0 comments on commit 7b12369

Please sign in to comment.