| 55 | |
| 56 | ==== How to compile Parrot VM using Strawberry Perl and Microsoft Visual Studio 2010 ==== |
| 57 | |
| 58 | Strawberry Perl is community-driven full featured Perl for Windows |
| 59 | systems. Parrot's `Configure.pl` determins compiler options from Perl |
| 60 | executable. Unfortunately, Strawberry Perl has been compiled with gcc, |
| 61 | so `Configure.pl` will try to use gcc's options on VS compiler and |
| 62 | linker, which will result in nothing - you won't be able to |
| 63 | compile/test Parrot. In oreder to fix that you have to set up |
| 64 | compiler's options manually. |
| 65 | |
| 66 | First of all, open Visual Studio Command Prompt (Windows->Microsoft |
| 67 | Visual Studio 2010->Visual Studio Tools), then navigate to directory, |
| 68 | where you have Parrot's sources. |
| 69 | |
| 70 | I use the following options: |
| 71 | |
| 72 | {{{ |
| 73 | perl Configure.pl --without-icu --cc=cl --link=link --ld=link \ |
| 74 | --ccflags="-nologo -GF -W4 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE \ |
| 75 | -DNO_STRICT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC" \ |
| 76 | --linkflags="-nologo -nodefaultlib -debug" --verbose |
| 77 | }}} |
| 78 | |
| 79 | This should create a Makefile for bare minimum Parrot install. |
| 80 | |
| 81 | Now you can run `nmake`. Enjoy your parrot.exe. |