rust/mk
Alex Crichton 7cf0b1798b configure: Start adding MSVC support
This commit starts to add MSVC support to the ./configure script to enable the
build system to detect and build an MSVC target with the cl.exe compiler and
toolchain. The primary change here is a large sanity check when an MSVC target
is requested (and currently only `x86_64-pc-windows-msvc` is recognized).

When building an MSVC target, the configure script either requires the
`--msvc-root` argument or for `cl.exe` to be in `PATH`. It also requires that if
in the path `cl.exe` is the 64-bit version of the compiler.

Once detected the configure script will run the `vcvarsall.bat` script provided
by Visual Studio to learn about the `INCLUDE` and `LIB` variables needed by the
`cl.exe` compiler to run (the default include/lib paths for the
compiler/linker). These variables are then reexported when running `make` to
ensure that our own compiles are running the same toolchain.

The purpose of this detection and environment variable scraping is to avoid
requiring the build itself to be run inside of a `cmd.exe` shell but rather
allow it to run in the currently expected MinGW/MSYS shell.
2015-05-19 10:52:55 -07:00
..
cfg configure: Start adding MSVC support 2015-05-19 10:52:55 -07:00
clean.mk debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
crates.mk mk: Correct names of installed libs on windows 2015-05-19 10:36:00 -07:00
ctags.mk Fix make TAGS.emacs. 2014-12-16 17:08:49 +01:00
debuggers.mk Make build timestamp files robust in face of concurrent source modification. 2015-03-03 15:11:01 +01:00
dist.mk mk: Add a missing folder to the dist directory 2015-05-08 09:45:16 -07:00
docs.mk Error index style tweaks. 2015-05-05 11:17:00 +10:00
grammar.mk Add a LALR grammar for Rust with testing support 2015-01-20 18:47:17 -08:00
host.mk mk: Add space before line continuation backslash 2014-07-23 08:44:11 -07:00
install.mk configure: Remove obsolete --disable-verify option 2015-04-08 12:16:47 -07:00
llvm.mk mk: Fix native LLVM deps for cross-host builds 2015-05-19 10:36:00 -07:00
main.mk mk: Correct names of installed libs on windows 2015-05-19 10:36:00 -07:00
perf.mk support for GNU configure syntax 2013-10-29 16:22:08 -07:00
platform.mk mk: Correct names of installed libs on windows 2015-05-19 10:36:00 -07:00
prepare.mk mk: Correct names of installed libs on windows 2015-05-19 10:36:00 -07:00
reconfig.mk Correct building documenation with Pandoc and TeX on Windows. 2014-11-06 18:08:33 +03:00
rt.mk mk: Correct names of installed libs on windows 2015-05-19 10:36:00 -07:00
rustllvm.mk mk: Remove a bunch of unused directives 2015-04-27 09:22:05 -07:00
snap.mk mk: Remove extra whitespace before line continuation backslashes 2014-07-23 08:41:55 -07:00
stage0.mk mk/stage0: complain instead of creating an empty file 2014-11-20 16:00:12 -05:00
target.mk mk: Fix native LLVM deps for cross-host builds 2015-05-19 10:36:00 -07:00
tests.mk mk: Fix native LLVM deps for cross-host builds 2015-05-19 10:36:00 -07:00
util.mk mk: Add a printer helper to the make setup 2015-04-10 17:10:03 -07:00