Skip to content

Visual Studio Code, rebuilt in Rust

Rust
512 B
Raw Blame
#!/bin/bash
# Syncs this checkout to its Mac Studio mirror (port/tools/studio) and runs a command in native/ with the Windows cross
# toolchain on PATH: cargo-xwin, Homebrew llvm (clang-cl) and lld (lld-link). Compile checks only; Windows runs are windows.yml.
# Usage: port/tools/windows-build 'cargo gc xwin build -p app --target x86_64-pc-windows-msvc'
set -euo pipefail
exec "$(dirname "$0")/studio" "cd native && PATH=/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/lld/bin:\$PATH bash -c $(printf '%q' "$1")"