]> git.lizzy.rs Git - rust.git/commit
rustc: Always include the morestack library
authorAlex Crichton <alex@alexcrichton.com>
Mon, 23 Jun 2014 19:54:56 +0000 (12:54 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 25 Jun 2014 00:22:41 +0000 (17:22 -0700)
commitb18c4cfef0250eb7cc9b7e8273325878be72c242
tree314913b0cf68e76fe14a4b4e91b479f38173eac9
parente16a87513a9a94d86de6125a72977af50e05af65
rustc: Always include the morestack library

It was previously assumed that the object file generated by LLVM would always
require the __morestack function, but that assumption appears to be incorrect,
as outlined in #15108. This commit forcibly tells the linker to include the
entire archive, regardless of whether it's currently necessary or not.

Closes #15108
src/librustc/back/link.rs
src/test/run-pass/issue-15108.rs [new file with mode: 0644]