Skip to content

Commit

Permalink
Fix stack overflow on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jul 14, 2018
1 parent 49bca73 commit 8a7eb81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bin/rustc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// See rustc/rustc.rs in rust repo for explanation of stack adjustments.
#![feature(link_args)]
#[allow(unused_attributes)]
#[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")]
#[cfg_attr(all(windows, not(target_env = "msvc")), link_args = "-Wl,--stack,16777216")]
extern {}

extern crate rls_rustc;

fn main() {
Expand Down

0 comments on commit 8a7eb81

Please sign in to comment.