File tree 1 file changed +4
-26
lines changed
1 file changed +4
-26
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ Simplified version of Firestorm targeting C instead of machine code directly.
5
5
# Local Build Setup
6
6
7
7
Brew:
8
- ```
9
- brew install ninja cmake ccache hyperfine
8
+
9
+ ``` bash
10
+ brew install ninja cmake ccache hyperfine llvm@19
10
11
```
11
12
12
13
Get the sources
13
14
14
15
``` bash
15
16
git clone
[email protected] :DragonRuby/lightstorm.git --recursive
16
- git clone
[email protected] :llvm/llvm-project.git
; cd llvm-project
; git checkout d401987fe349a87c53fe25829215b080b70c0c1a
17
17
```
18
18
19
19
Create toolchain dir
@@ -23,33 +23,11 @@ sudo mkdir /opt/lightstorm.toolchain.dir
23
23
sudo chown ` whoami` /opt/lightstorm.toolchain.dir
24
24
```
25
25
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
-
48
26
Build lightstorm
49
27
50
28
``` bash
51
29
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/ \
53
31
-DCMAKE_INSTALL_PREFIX=/opt/lightstorm.toolchain.dir/lightstorm \
54
32
../lightstorm
55
33
You can’t perform that action at this time.
0 commit comments