mirror of
https://github.com/rtk-ai/rtk.git
synced 2026-09-19 07:33:17 +08:00
fix(build): increase Windows startup stack
Signed-off-by: Ахмедов Нурбек Медетбаевич <n.akhmedov@uzdc.uz>
This commit is contained in:
@@ -3,6 +3,15 @@ use std::fs;
|
||||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
// Clap + the full command graph can exceed the default 1 MiB Windows
|
||||
// main-thread stack during process startup. Reserve a larger stack for
|
||||
// the CLI binary so `rtk.exe --version`, `--help`, and hook entry
|
||||
// points start reliably without requiring ad-hoc RUSTFLAGS.
|
||||
println!("cargo:rustc-link-arg=/STACK:8388608");
|
||||
}
|
||||
|
||||
let filters_dir = Path::new("src/filters");
|
||||
let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR must be set by Cargo");
|
||||
let dest = Path::new(&out_dir).join("builtin_filters.toml");
|
||||
|
||||
Reference in New Issue
Block a user