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 4e4cf43 commit 203a807
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
#![warn(clippy)]
#![allow(cyclomatic_complexity, needless_pass_by_value, too_many_arguments)]

// 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 cargo;
extern crate cargo_metadata;
extern crate env_logger;
Expand Down

0 comments on commit 203a807

Please sign in to comment.