Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit e99e1e4

Browse files
committed
Add cmake build for Mac Intel
1 parent 4d513c3 commit e99e1e4

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

README_temp.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,28 @@ This will create a build_deps folder, just ignore it
1212

1313
### Step 2:
1414

15-
Build the app from source
16-
17-
```zsh
18-
mkdir build && cd build
19-
cmake ..
20-
21-
# MacOS
22-
make -j $(sysctl -n hw.physicalcpu)
23-
# Linux
24-
make -j $(%NUMBER_OF_PROCESSORS%)
25-
```
15+
Generate build file
16+
- On MacOS with Apple silicon:
17+
18+
```zsh
19+
mkdir build && cd build
20+
cmake ..
21+
```
22+
23+
- On MacOS with Intel processors:
24+
```zsh
25+
mkdir build && cd build
26+
cmake -DLLAMA_METAL=OFF ..
27+
```
28+
29+
Build the app
30+
- On MacOS and Linux
31+
```
32+
# MacOS
33+
make -j $(sysctl -n hw.physicalcpu)
34+
# Linux
35+
make -j $(%NUMBER_OF_PROCESSORS%)
36+
```
2637

2738
### Step 3:
2839

0 commit comments

Comments
 (0)