We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e181139 + 56a7f1e commit 2bb390bCopy full SHA for 2bb390b
src/librustc_interface/util.rs
@@ -121,9 +121,13 @@ pub fn create_session(
121
}
122
123
// Temporarily have stack size set to 32MB to deal with various crates with long method
124
-// chains or deep syntax trees.
+// chains or deep syntax trees, except when on Haiku.
125
// FIXME(oli-obk): get https://github.com/rust-lang/rust/pull/55617 the finish line
126
-const STACK_SIZE: usize = 32 * 1024 * 1024; // 32MB
+#[cfg(not(target_os = "haiku"))]
127
+const STACK_SIZE: usize = 32 * 1024 * 1024;
128
+
129
+#[cfg(target_os = "haiku")]
130
+const STACK_SIZE: usize = 16 * 1024 * 1024;
131
132
fn get_stack_size() -> Option<usize> {
133
// FIXME: Hacks on hacks. If the env is trying to override the stack size
0 commit comments