Skip to content

Commit

Permalink
compile fix for haiku (#474)
Browse files Browse the repository at this point in the history
Co-authored-by: Al Hoang <[email protected]>
  • Loading branch information
hoanga and Al Hoang authored Aug 11, 2023
1 parent ba40f55 commit 16b5127
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion html5ever/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ fn main() {
let output = Path::new(&env::var("OUT_DIR").unwrap()).join("rules.rs");
println!("cargo:rerun-if-changed={}", input.display());

#[cfg(target_os = "haiku")]
let stack_size = 16;

#[cfg(not(target_os = "haiku"))]
let stack_size = 128;

// We have stack overflows on Servo's CI.
let handle = Builder::new()
.stack_size(128 * 1024 * 1024)
.stack_size(stack_size * 1024 * 1024)
.spawn(move || {
match_token::expand(&input, &output);
})
Expand Down

0 comments on commit 16b5127

Please sign in to comment.