mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-28 08:31:25 +00:00 
			
		
		
		
	* Add notes for a static build * Update docs/build.md --------- Co-authored-by: Diego Devesa <slarengh@gmail.com>
This commit is contained in:
		| @@ -39,6 +39,11 @@ cmake --build build --config Release | |||||||
|        ``` |        ``` | ||||||
|  |  | ||||||
|     For more details and a list of supported generators, see the [CMake documentation](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html). |     For more details and a list of supported generators, see the [CMake documentation](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html). | ||||||
|  | - For static builds, add `-DBUILD_SHARED_LIBS=OFF`: | ||||||
|  |   ``` | ||||||
|  |   cmake -B build -DBUILD_SHARED_LIBS=OFF | ||||||
|  |   cmake --build build --config Release | ||||||
|  |   ``` | ||||||
|  |  | ||||||
| - Building for Windows (x86, x64 and arm64) with MSVC or clang as compilers: | - Building for Windows (x86, x64 and arm64) with MSVC or clang as compilers: | ||||||
|     - Install Visual Studio 2022, e.g. via the [Community Edition](https://visualstudio.microsoft.com/de/vs/community/). In the installer, select at least the following options (this also automatically installs the required additional tools like CMake,...): |     - Install Visual Studio 2022, e.g. via the [Community Edition](https://visualstudio.microsoft.com/de/vs/community/). In the installer, select at least the following options (this also automatically installs the required additional tools like CMake,...): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Benson Wong
					Benson Wong