Mercurial
diff dictation/launcher.sh @ 282:6bd4a3990696 default tip
Add cross-platform canvas orchestration and typed composer
Enable native ARM dependencies, macOS Copilot orchestration, portable service supervision, CPU dictation, and a shared N-key speak-or-type composer.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Thu, 20 Aug 2026 20:45:25 -0700 |
| parents | 78699f810817 |
| children |
line wrap: on
line diff
--- a/dictation/launcher.sh Tue Aug 18 22:18:15 2026 -0700 +++ b/dictation/launcher.sh Thu Aug 20 20:45:25 2026 -0700 @@ -13,20 +13,22 @@ exit 1 fi -find_library_dir() { - local name="$1" - local path - path="$(find -L "$RUNFILES_DIR" -name "$name" -print -quit)" - if [[ -z "$path" ]]; then - echo "Unable to find $name in Bazel runfiles." >&2 - exit 1 - fi - dirname "$path" -} +if [[ "$(uname -s)" == "Linux" ]]; then + find_library_dir() { + local name="$1" + local path + path="$(find -L "$RUNFILES_DIR" -name "$name" -print -quit)" + if [[ -z "$path" ]]; then + echo "Unable to find $name in Bazel runfiles." >&2 + exit 1 + fi + dirname "$path" + } -cublas_dir="$(find_library_dir libcublas.so.12)" -cudnn_dir="$(find_library_dir libcudnn.so.9)" -export LD_LIBRARY_PATH="$cublas_dir:$cudnn_dir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" + cublas_dir="$(find_library_dir libcublas.so.12)" + cudnn_dir="$(find_library_dir libcudnn.so.9)" + export LD_LIBRARY_PATH="$cublas_dir:$cudnn_dir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" +fi if [[ "$binary" != /* ]]; then binary="$RUNFILES_DIR/_main/$binary"