rust/src/librustc_trans/trans
bors c9ef1a5c19 Auto merge of #27208 - alexcrichton:msvc-less-dllimport, r=brson
Currently you can hit a link error on MSVC by only referencing static items from
a crate (no functions for example) and then link to the crate statically (as all
Rust crates do 99% of the time). A detailed investigation can be found [on
github][details], but the tl;dr is that we need to stop applying dllimport so
aggressively.

This commit alters the application of dllimport on constants to only cases where
the crate the constant originated from will be linked as a dylib in some output
crate type. That way if we're just linking rlibs (like the motivation for this
issue) we won't use dllimport. For the compiler, however, (which has lots of
dylibs) we'll use dllimport.

[details]: https://github.com/rust-lang/rust/issues/26591#issuecomment-123513631

cc #26591
2015-07-24 05:13:39 +00:00
..
debuginfo Create proper debuginfo for closure variables 2015-07-20 15:45:11 +02:00
_match.rs Clarify the usage of "hints" in const_eval. 2015-07-17 18:29:34 -07:00
adt.rs Fix negate_unsigned feature gate check 2015-07-14 21:48:43 +03:00
asm.rs Change some instances of .connect() to .join() 2015-07-10 19:40:46 -04:00
attributes.rs Rename TypeWithMutability to TypeAndMut 2015-07-10 18:27:06 -07:00
base.rs trans: Be a little more picky about dllimport 2015-07-21 21:31:25 -07:00
basic_block.rs
build.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
builder.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
cabi_aarch64.rs
cabi_arm.rs
cabi_mips.rs
cabi_powerpc.rs
cabi_x86_64.rs
cabi_x86_win64.rs
cabi_x86.rs
cabi.rs
callee.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
cleanup.rs Avoid creating basic blocks for empty cleanup scopes 2015-07-22 23:15:01 +02:00
closure.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
common.rs Auto merge of #27176 - alexcrichton:fix-stock-llvm, r=brson 2015-07-22 09:13:09 +00:00
consts.rs Clarify the usage of "hints" in const_eval. 2015-07-17 18:29:34 -07:00
context.rs Auto merge of #27208 - alexcrichton:msvc-less-dllimport, r=brson 2015-07-24 05:13:39 +00:00
controlflow.rs
datum.rs
declare.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
expr.rs Auto merge of #26895 - jroesch:modernize-typeck-names, r=nikomatsakis 2015-07-12 19:22:11 +00:00
foreign.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
glue.rs
inline.rs
intrinsic.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
llrepr.rs Change some instances of .connect() to .join() 2015-07-10 19:40:46 -04:00
machine.rs trans: Clean up handling the LLVM data layout 2015-07-16 20:25:52 -07:00
macros.rs
meth.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
mod.rs
monomorphize.rs trans: Move rust_try into the compiler 2015-07-21 16:08:11 -07:00
tvec.rs Rename TypeWithMutability to TypeAndMut 2015-07-10 18:27:06 -07:00
type_.rs Change some instances of .connect() to .join() 2015-07-10 19:40:46 -04:00
type_of.rs Auto merge of #26957 - wesleywiser:rename_connect_to_join, r=alexcrichton 2015-07-12 22:05:59 +00:00
value.rs