From 92483349beea7a2d6110c4a2f5a5e4b214fdce02 Mon Sep 17 00:00:00 2001 From: Kartonrad <56208328+kartonrad@users.noreply.github.com> Date: Sun, 14 Apr 2024 03:16:29 +0200 Subject: [PATCH 1/2] Update BUILDING.md --- BUILDING.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/BUILDING.md b/BUILDING.md index 0820aab..35dc838 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -1,3 +1,6 @@ +# Running on Arch Linux +`sudo pacman -Syy cuda llvm clang cmake` +`cargo build` # Running on Windows using MSYS2 @@ -27,6 +30,15 @@ Make sure you have installed and in the path: - cmake - LLVM(clang) +### Instructions (for builds with `cuda` enabled) +1. Download [CUDA](https://developer.nvidia.com/cuda-downloads?target_os=Windows) +2. Download [Visual Studio with Desktop C++ and Clang enabled](https://visualstudio.microsoft.com/de/downloads/) (see clang link below for installer walkthrough) +3. Download [CLANG](https://www.wikihow.com/Install-Clang-on-Windows) +4. Download [CMAKE](https://cmake.org/download/) +5. Run `where.exe clang`, then `setx LIBCLANG_PATH "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\bin"` or something like that +6. Restart your shell!!! +7. Cargo build + # Running on M1 OSX To build on a M1 Mac, make sure to add the following to your project's `.cargo/config.toml`: @@ -44,4 +56,4 @@ You also need to have CMake installed. You can obtain this using homebrew: brew install cmake ``` -CMake can also be installed from https://cmake.org/download/ but `cmake` binary needs to be in your PATH. \ No newline at end of file +CMake can also be installed from https://cmake.org/download/ but `cmake` binary needs to be in your PATH. From cbc35f9b0c7226a57df94ed2e9a3d792d21958e6 Mon Sep 17 00:00:00 2001 From: Kartonrad <56208328+kartonrad@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:33:00 +0200 Subject: [PATCH 2/2] Update BUILDING.md --- BUILDING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILDING.md b/BUILDING.md index 35dc838..0be1f8a 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -1,5 +1,5 @@ # Running on Arch Linux -`sudo pacman -Syy cuda llvm clang cmake` +`sudo pacman -Syy llvm clang cmake` `cargo build` # Running on Windows using MSYS2