]> git.lizzy.rs Git - rust.git/commitdiff
rustc: Turn off split stacks on Windows
authorBrian Anderson <banderson@mozilla.com>
Fri, 26 Sep 2014 17:11:22 +0000 (10:11 -0700)
committerBrian Anderson <banderson@mozilla.com>
Fri, 26 Sep 2014 17:16:56 +0000 (10:16 -0700)
src/librustc/middle/trans/context.rs

index 962f97ab74c6fc8908e7df162b0691e1a871a957..5c8c6a24b4fa53032052a86150b76ed976b27b60 100644 (file)
@@ -546,7 +546,7 @@ pub fn get_intrinsic(&self, key: & &'static str) -> ValueRef {
     // but it could be enabled (with patched LLVM)
     pub fn is_split_stack_supported(&self) -> bool {
         let ref cfg = self.sess().targ_cfg;
-        cfg.os != abi::OsiOS || cfg.arch != abi::Arm
+        (cfg.os != abi::OsiOS || cfg.arch != abi::Arm) && cfg.os != abi::OsWindows
     }