Skip to content

Commit

Permalink
systest: bump stack size on Windows to avoid overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rib committed Jun 21, 2023
1 parent 877bdfd commit a2e71cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions systest/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ fn main() {
);
println!("cargo:rustc-link-lib=dylib=jvm");

// Increase the stack size on Windows otherwise the tests just overflow
// the stack.
if env::var("CARGO_CFG_TARGET_ENV").unwrap() == "msvc" {
println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
}

let mut cfg = ctest2::TestGenerator::new();

let include_dir = java_home.join("include");
Expand Down

0 comments on commit a2e71cf

Please sign in to comment.