Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-organize the LLVM build instructions #6059

Merged
merged 4 commits into from
Nov 23, 2023

Conversation

stefanv
Copy link
Contributor

@stefanv stefanv commented Nov 21, 2023

  • zig needs lib directory
  • llvm needs development headers
  • Keep installation instructions together
  • Group by platform
  • No longer split installation and debugging instructions

@@ -104,25 +104,33 @@ For any OS, you can use [`zigup`](https://github.com/marler8997/zigup) to manage
If you prefer a package manager, you can try the following:

- For MacOS, you can install with `brew install [email protected]`
- For, Ubuntu, you can use Snap, you can install with `snap install zig --classic --beta`
- For systems with Snap, you can install with `snap install zig --classic --beta`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think referencing Ubuntu by name here is probably helpful to people running Ubuntu.

How about this?

Suggested change
- For systems with Snap, you can install with `snap install zig --classic --beta`
- For systems with Snap (such as Ubuntu), you can install with `snap install zig --classic --beta`

You may also need to manually specify a prefix env var like so:

```sh
export LLVM_SYS_160_PREFIX=/usr/local/opt/llvm@16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, shouldn't this also use brew --prefix? 🤔 e.g.

Suggested change
export LLVM_SYS_160_PREFIX=/usr/local/opt/llvm@16
export LLVM_SYS_160_PREFIX=$(brew --prefix llvm@16)

Copy link
Contributor

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of suggestions/questions, but looking good so far! Thanks @stefanv! 😃

- `zig` needs `lib` directory
- `llvm` needs development headers
- Keep installation instructions together
- Group by platform
- No longer split installation and debugging instructions
@stefanv stefanv force-pushed the organize-llvm-build-instructions branch from 37db031 to 6883c76 Compare November 22, 2023 22:21
@stefanv
Copy link
Contributor Author

stefanv commented Nov 22, 2023

Thanks for the review @rtfeldman; I've updated the PR accordingly.

Copy link
Contributor

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks so much @stefanv! 🎉

@rtfeldman rtfeldman merged commit 9e3fec9 into roc-lang:main Nov 23, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants