Skip to content

Commit

Permalink
Merge pull request #133 from kartonrad/patch-1
Browse files Browse the repository at this point in the history
Add more detailed build instructions for confused windows users
  • Loading branch information
tazz4843 authored Apr 14, 2024
2 parents a9e0605 + cbc35f9 commit 3c28886
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Running on Arch Linux
`sudo pacman -Syy llvm clang cmake`
`cargo build`

# Running on Windows using MSYS2

Expand Down Expand Up @@ -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`:
Expand All @@ -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.
CMake can also be installed from https://cmake.org/download/ but `cmake` binary needs to be in your PATH.

0 comments on commit 3c28886

Please sign in to comment.