Expand windows instructions (#414)

* Expand windows instructions

* Windows: both static and shared don't work at the same time
This commit is contained in:
Isuru Fernando
2020-06-18 13:35:54 -05:00
committed by GitHub
parent b5b604e106
commit 31af73c11a

View File

@@ -167,7 +167,13 @@ If you want to build on Windows, there are two options:
1. MSVC ABI compatible DLL with clang
If you want BLIS to be compatible with DLLs built by MSVC, you need to use `clang.exe` to build BLIS as BLIS does not support building with Visual Studio C compiler (``cl.exe``). To build BLIS, you need a recent clang from [LLVM](https://releases.llvm.org/download.html), an [MSYS2](https://www.msys2.org/) environment (for build tools like `sed`, `bash`), a Visual Studio 2015 or later environment (for C standard library) and Windows SDK.
To build `BLIS`, activate the Visual Studio environment from a command prompt and drop in to a bash shell from MSYS2 environment. Then set `AR=llvm-ar`, `AS=llvm-as`, `RANLIB=echo`, `CC=clang` and then follow the instructions for the Linux build.
To build `BLIS`,
* Activate the Visual Studio environment from a command prompt
Run `call C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat x64`
* Start the bash shell from the same command prompt. (Run `bash.exe`)
* Run `export AR=llvm-ar AS=llvm-as RANLIB=echo CC=clang CXX=clang++`
* Run `./configure --prefix=/c/blis/ --disable-static --enable-shared auto`
* Run `make -j install`
2. MinGW DLL