-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.envrc
More file actions
28 lines (25 loc) · 1.25 KB
/
.envrc
File metadata and controls
28 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Optional dev environment — activated automatically by direnv
# (https://direnv.net)
#
# This makes `runt` resolve to the local debug build (bin/runt wrapper)
# instead of the system-wide /usr/local/bin/runt install.
# Same with `notebook` and `runtimed`.
# xtask commands also derive the worktree path themselves, so direnv is a
# convenience for interactive shells rather than a requirement for daemon
# isolation.
PATH_add bin
export RUNTIMED_WORKSPACE_PATH="$(expand_path .)"
export RUNTIMED_DEV=1
# Link through LLVM lld on macOS arm64 when it's installed. Local dev
# gets the faster linker; CI and contributors without lld fall back to
# Apple's default ld. Scoped via CARGO_TARGET_<triple>_RUSTFLAGS so it
# doesn't collide with a user-set RUSTFLAGS.
if has ld64.lld; then
export CARGO_TARGET_AARCH64_APPLE_DARWIN_RUSTFLAGS="-C link-arg=-fuse-ld=lld"
fi
# Local cargo defaults kick in: CARGO_INCREMENTAL=1 + no RUSTC_WRAPPER.
# Tight edit-check loops on one crate reuse rustc's per-function
# incremental artifacts and run in seconds. sccache is still useful
# for CI (fresh target dir every run) but its "can't cache incremental"
# constraint makes it a net loss locally when the incremental cache is
# already warm. Set RUSTC_WRAPPER=sccache yourself if you want it.