diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-21 18:21:58 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-21 18:21:58 +0200 |
| commit | e1e4df1f971950dd56d49a8b863d8888768633fa (patch) | |
| tree | f4a1120632591609355e7ce90e8b1b1b84951dbf | |
| parent | f954bee2a90de66c138ae1168e4e32ef0df1b2eb (diff) | |
build: disable polonius in fast compilation cargo config
| -rw-r--r-- | .cargo/config-nightly-fast-compile.toml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.cargo/config-nightly-fast-compile.toml b/.cargo/config-nightly-fast-compile.toml index 359e004..f63e319 100644 --- a/.cargo/config-nightly-fast-compile.toml +++ b/.cargo/config-nightly-fast-compile.toml @@ -8,9 +8,16 @@ debug = "line-tables-only" codegen-backend = "cranelift" [build] -rustflags = ["-Zthreads=16"] rustc-wrapper = "sccache" [target.'cfg(unix)'] linker = "clang" -rustflags = ["-Clink-arg=--ld-path=wild"] +rustflags = [ + "-Clink-arg=--ld-path=wild", + "-Zthreads=8", + + # Because Polonius is currently only enabled in nightly Rust, it is disabled here so + # that certain borrowing related compilation errors does not only occur when this + # config is not used + "-Zpolonius=off", +] |
