Skip to content

Commit c6d81f3

Browse files
committed
Describe how to make LLVM binutils available on macOS (fixes #45)
1 parent c9672ba commit c6d81f3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

website/en/01-setting-up-development-environment.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ Install [Homebrew](https://brew.sh) and run this command to get all tools you ne
1616
brew install llvm lld qemu
1717
```
1818

19+
Also, you need to add LLVM binutils to your `PATH`:
20+
21+
```
22+
$ export PATH="$PATH:$(brew --prefix)/opt/llvm/bin"
23+
$ which llvm-objcopy
24+
/opt/homebrew/opt/llvm/bin/llvm-objcopy
25+
```
26+
1927
### Ubuntu
2028

2129
Install packages with `apt`:

website/ja/01-setting-up-development-environment.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ title: 開発環境
1616
brew install llvm lld qemu
1717
```
1818

19+
また、LLVMのユーティリティを使えるように `PATH` を設定します。
20+
21+
```
22+
$ export PATH="$PATH:$(brew --prefix)/opt/llvm/bin"
23+
$ which llvm-objcopy
24+
/opt/homebrew/opt/llvm/bin/llvm-objcopy
25+
```
26+
1927
### Ubuntu
2028

2129
次のコマンドで必要なパッケージをインストールします。他のLinuxディストリビューションをお使いの場合は、適宜読み替えてください。

0 commit comments

Comments
 (0)