Skip to content

Commit 8a7eb81

Browse files
committed
Fix stack overflow on windows.
Fixes rust-lang/rls#838
1 parent 49bca73 commit 8a7eb81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bin/rustc.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// See rustc/rustc.rs in rust repo for explanation of stack adjustments.
2+
#![feature(link_args)]
3+
#[allow(unused_attributes)]
4+
#[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")]
5+
#[cfg_attr(all(windows, not(target_env = "msvc")), link_args = "-Wl,--stack,16777216")]
6+
extern {}
7+
18
extern crate rls_rustc;
29

310
fn main() {

0 commit comments

Comments
 (0)