Merge: Windows: last changes for a working bootstrap
authorJean Privat <jean@pryen.org>
Thu, 16 Feb 2017 13:54:40 +0000 (08:54 -0500)
committerJean Privat <jean@pryen.org>
Thu, 16 Feb 2017 13:54:40 +0000 (08:54 -0500)
commitefdce07e965f9ca2195c228860593e38beeda98c
tree37e3431908cbf123a1036b6408c4ca7c841e4325
parente20b0fd461161bb0ab79afd3b491b937da7945f6
parent3b27b306eae1f91d4ac07f1178a6415f2b51b3c7
Merge: Windows: last changes for a working bootstrap

This PR tweaks the generated Makefile so it works under Windows and silences the excessive warnings when casting ints to pointers, which is used to optimize `Int`, `Char` and `Bool`. And, to fix the heuristic that finds the Nit dir, this PR modifies two methods to support Windows path separator `\` and the PATH env var separator `;`.

These should be the last changes to get a working bootstrap on Windows using msys2/mingw64 tools. Once we regen c_src, you can clone and make Nit from Windows by following the first guide at: http://nitlanguage.org/windows.html Using msys2/mingw64 allows to compile native Windows apps using GNU tools, so the resulting program is an exe file that can use any Windows .dll file and show standard Windows windows.

These changes are far from fixing all issues for running Nit on Windows. However, a working bootstrap will simplify future incremental improvements and will allow detecting regressions with automated testing.

Pull-Request: #2368
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>
src/compiler/abstract_compiler.nit