- Create a base folder, e.g.
C:\users\simon\compile-julia
- Clone or download Julia from https://github.com/JuliaLang/julia.git and add it to your base folder:
- Download and place cygwin-portable-installer.cmd in the base directory.
- Edit
cygwin-portable-installer.cmd
and add the following line (for additional Cygwin dependencies) after lineset CYGWIN_PACKAGES=bash-completion,...
:
set CYGWIN_PACKAGES=%CYGWIN_PACKAGES%,cmake,gcc-g++,git,make,patch,curl,m4,python3,p7zip,mingw64-i686-gcc-g++,mingw64-i686-gcc-fortran,mingw64-x86_64-gcc-g++,mingw64-x86_64-gcc-fortran
(The list of packages is taken from build-windows.md and might need updating in the future.) - Run
cygwin-portable-installer.cmd
for a completely automatic installation
- Create a file
make-julia.cmd
in your base directory and add the following content:
@echo 'XC_HOST = x86_64-w64-mingw32' > "%~dp0\julia\Make.user"
@call "%~dp0\cygwin-portable.cmd" -c "make -C '%~dp0\julia'" %*