Skip to content

Commit 44c9109

Browse files
authored
Merge pull request #244 from contentauth/docs/llvm-clang
docs: Add instructions to install LLVM Clang.
2 parents 4d1dc63 + 75af938 commit 44c9109

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,35 @@ This library aims to make viewing and verifying C2PA metadata in the browser as
44

55
For more information, please view the documentation at https://opensource.contentauthenticity.org/docs/js-sdk/getting-started/overview.
66

7-
## Getting started
7+
## Prerequisites
88

9-
This monorepo is managed by [Rush](https://rushjs.io/). To get started:
9+
To build this library on macOS, you must first install LLVM Clang as follows:
10+
1. If you haven't already, install Homebrew:
11+
```
12+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
13+
```
14+
1. Install LLVM Clang:
15+
```
16+
brew install llvm
17+
```
18+
1. Add it to your PATH:
19+
```
20+
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
21+
```
22+
For future use, add it to your `.zshrc` file:
23+
```
24+
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
25+
```
26+
27+
Verify the installation:
28+
```
29+
llvm-config --version
30+
```
31+
You should see a version number, such as 20.1.3.
32+
33+
## Build
34+
35+
This monorepo is managed by [Rush](https://rushjs.io/). To build the library:
1036

1137
Install Rush:
1238
```

0 commit comments

Comments
 (0)