Skip to content

Commit ccef74b

Browse files
committed
No need to build LLVM anymore
1 parent b0dd16f commit ccef74b

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

README.md

+4-26
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Simplified version of Firestorm targeting C instead of machine code directly.
55
# Local Build Setup
66

77
Brew:
8-
```
9-
brew install ninja cmake ccache hyperfine
8+
9+
```bash
10+
brew install ninja cmake ccache hyperfine llvm@19
1011
```
1112

1213
Get the sources
1314

1415
```bash
1516
git clone [email protected]:DragonRuby/lightstorm.git --recursive
16-
git clone [email protected]:llvm/llvm-project.git; cd llvm-project; git checkout d401987fe349a87c53fe25829215b080b70c0c1a
1717
```
1818

1919
Create toolchain dir
@@ -23,33 +23,11 @@ sudo mkdir /opt/lightstorm.toolchain.dir
2323
sudo chown `whoami` /opt/lightstorm.toolchain.dir
2424
```
2525

26-
Build and install LLVM (+clang +MLIR):
27-
28-
```bash
29-
mkdir lightstorm-llvm; cd lightstorm-llvm
30-
cmake -G Ninja \
31-
-DLLVM_ENABLE_PROJECTS="mlir" \
32-
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
33-
-DLLVM_TARGETS_TO_BUILD=host \
34-
-DLLVM_ENABLE_ZLIB=OFF \
35-
-DLLVM_ENABLE_ZSTD=OFF \
36-
-DLLVM_ENABLE_TERMINFO=OFF \
37-
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
38-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
39-
-DCMAKE_INSTALL_PREFIX=/opt/lightstorm.toolchain.dir/llvm \
40-
../llvm-project/llvm
41-
42-
ninja
43-
ninja install
44-
45-
cd ..
46-
```
47-
4826
Build lightstorm
4927

5028
```bash
5129
mkdir lightstorm-build; cd lightstorm-build
52-
cmake -G Ninja -DCMAKE_PREFIX_PATH=/opt/lightstorm.toolchain.dir/llvm \
30+
cmake -G Ninja -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/llvm@19/ \
5331
-DCMAKE_INSTALL_PREFIX=/opt/lightstorm.toolchain.dir/lightstorm \
5432
../lightstorm
5533

0 commit comments

Comments
 (0)