]> git.lizzy.rs Git - rust.git/commit
rustc_llvm: Don't export constants across dlls
authorAlex Crichton <alex@alexcrichton.com>
Tue, 12 May 2015 04:07:38 +0000 (21:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 19 May 2015 17:53:07 +0000 (10:53 -0700)
commit847c8520b14e3ae9aec26a33f70750a071d3f18d
treec90aa19d0cb6b57bed2c1f01165e05013eff477a
parentb538189ba0abb77658c7b082d2d541daaaa7f80a
rustc_llvm: Don't export constants across dlls

For imports of constants across DLLs to work on Windows it *requires* that the
import be marked with `dllimport` (unlike functions where the marker is
optional, but strongly recommended). This currently isn't working for importing
FFI constants across boundaries, however, so the one constant exported from
`rustc_llvm.dll` is now a function to be called instead.
src/librustc_llvm/lib.rs
src/librustc_trans/trans/debuginfo/mod.rs
src/rustllvm/RustWrapper.cpp