Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Fix stack overflow on windows. #942

Merged
merged 1 commit into from
Jul 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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