diff options
| author | bors <bors@rust-lang.org> | 2017-04-24 22:18:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-04-24 22:18:16 +0000 |
| commit | 0777c757a6832dc5f8f218377f99960f5477311f (patch) | |
| tree | 454c553052f609acf8aeb867b5e5645d3422d178 /src/bootstrap/lib.rs | |
| parent | 63c77214c1d38789652b465694b254205d1886e0 (diff) | |
| parent | 899427765760068163c811fbe9e02ff953638698 (diff) | |
| download | rust-0777c757a6832dc5f8f218377f99960f5477311f.tar.gz rust-0777c757a6832dc5f8f218377f99960f5477311f.zip | |
Auto merge of #40123 - TimNN:llvm40, r=alexcrichton
LLVM 4.0 Upgrade
Since nobody has done this yet, I decided to get things started:
**Todo:**
* [x] push the relevant commits to `rust-lang/llvm` and `rust-lang/compiler-rt`
* [x] cleanup `.gitmodules`
* [x] Verify if there are any other commits from `rust-lang/llvm` which need backporting
* [x] Investigate / fix debuginfo ("`<optimized out>`") failures
* [x] Use correct emscripten version in docker image
---
Closes #37609.
---
**Test results:**
Everything is green 🎉
Diffstat (limited to 'src/bootstrap/lib.rs')
| -rw-r--r-- | src/bootstrap/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 5e046f41673..6be1b9f3d38 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -882,6 +882,13 @@ impl Build { if target.contains("apple-darwin") { base.push("-stdlib=libc++".into()); } + + // Work around an apparently bad MinGW / GCC optimization, + // See: http://lists.llvm.org/pipermail/cfe-dev/2016-December/051980.html + // See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78936 + if target == "i686-pc-windows-gnu" { + base.push("-fno-omit-frame-pointer".into()); + } return base } |
