Skip to content

Commit

Permalink
Merge branch 'canary' into versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronvg authored Jul 17, 2024
2 parents d4dd5d1 + 9ee66ed commit 872bb39
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions engine/llvm_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
# https://github.com/briansmith/ring/issues/1824#issuecomment-2059955073 -- justification
# Apple Clang doesn't have comprehensive WASM support, so we need to install LLVM clang and relink Rust to use it via reinstall. This is necessary for a dependency Vertex relies on.
# Install LLVM
brew install llvm

# Add LLVM to PATH
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc

# Reload shell configuration
source ~/.zshrc

# Check LLVM version
llvm-config --version

# Uninstall Rust
rustup self uninstall

# Uninstall Rust via Homebrew (if necessary)
brew uninstall rust

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Add WebAssembly target
rustup target add wasm32-unknown-unknown

# Add x86_64 macOS target
rustup target add x86_64-apple-darwin

echo "Setup complete. Please restart your terminal for changes to take effect."

0 comments on commit 872bb39

Please sign in to comment.