Native Windows development - lkuper/rust GitHub Wiki
Environment Setup
- Install the Mozilla-Build enviornment (referred to as m-b)
- Install Git
- In the installer, don't have git autoconvert line endings. Just use a good text editor like vim or emacs.
- Add the Git path to the PATH environment variable used by the m-b environment. m-b likes to reset the PATH when it starts you'll want to edit %USERPROFILE%/.bash_profile (~/.bash_profile if you're in the m-b environment). The m-b default shell is bash 3.1.
- For git, add the Git/cmd directory instead of the Git/bin directory to avoid any conflicts with the existing tools in the m-b environment.
- In m-b's /bin/ directory (or somewhere on your path), you'll want to add a script named 'git' which will invoke the CMD.exe shell script which was installed in step 3:
#!python
import os
import subprocess
import sys
path = "%s\Git\cmd\git.cmd" % os.environ['PROGRAMFILES']
cmdline = [path]
cmdline.extend(sys.argv[1:])
git = subprocess.Popen(cmdline)
sys.exit(git.wait())
- You should now be able to run
git
and ocaml
directly from the shell
- Apply my as-yet-unposted patches
make check