7cf0b1798b
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. |
||
---|---|---|
.. | ||
aarch64-apple-ios.mk | ||
aarch64-linux-android.mk | ||
aarch64-unknown-linux-gnu.mk | ||
arm-linux-androideabi.mk | ||
arm-unknown-linux-gnueabi.mk | ||
arm-unknown-linux-gnueabihf.mk | ||
armv7-apple-ios.mk | ||
armv7s-apple-ios.mk | ||
i386-apple-ios.mk | ||
i686-apple-darwin.mk | ||
i686-pc-windows-gnu.mk | ||
i686-unknown-linux-gnu.mk | ||
mips-unknown-linux-gnu.mk | ||
mipsel-unknown-linux-gnu.mk | ||
powerpc-unknown-linux-gnu.mk | ||
x86_64-apple-darwin.mk | ||
x86_64-apple-ios.mk | ||
x86_64-pc-windows-gnu.mk | ||
x86_64-pc-windows-msvc.mk | ||
x86_64-unknown-bitrig.mk | ||
x86_64-unknown-dragonfly.mk | ||
x86_64-unknown-freebsd.mk | ||
x86_64-unknown-linux-gnu.mk | ||
x86_64-unknown-linux-musl.mk | ||
x86_64-unknown-openbsd.mk |