Skip to content

Building on Windows

Trass3r edited this page Feb 21, 2018 · 1 revision
  • get Perl and flex
  • build LLVM
call C:\Strawberry-perl-5.26.1.1-64bit\portableshell.bat
cpan -i Exporter::Lite
cpan -i File::Which
cpan -i Getopt::Tabular
cpan -i Regexp::Common
cpan -i Sys::CPU

set PATH=C:\Strawberry-perl-5.26.1.1-64bit\perl\bin;%PATH%
set PATH=D:\tools\flex-2.5.4a-1\bin;%PATH%
mkdir objdir && cd objdir
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%cd%\..\installed -DCMAKE_PREFIX_PATH=%cd%\..\..\llvm\installed\lib\cmake\ -DCMAKE_CXX_FLAGS="/DWIN32 /D_WINDOWS /bigobj /W3 /D_HAS_EXCEPTIONS=0 /GR- /GS- /Zi" ..

Clone this wiki locally