]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_llvm/ffi.rs
Rollup merge of #38559 - japaric:ptx2, r=alexcrichton
[rust.git] / src / librustc_llvm / ffi.rs
index 334a1dbdec160b10125d1e3fcef084240825798d..c1705815165939b505ed948ab23434f655a145bd 100644 (file)
@@ -473,9 +473,7 @@ pub enum DIBuilder_opaque {}
 // generates an llvmdeps.rs file next to this one which will be
 // automatically updated whenever LLVM is updated to include an up-to-date
 // set of the libraries we need to link to LLVM for.
-#[cfg_attr(not(all(stage0,cargobuild)),
-           link(name = "rustllvm", kind = "static"))] // not quite true but good enough
-#[cfg_attr(stage0, linked_from = "rustllvm")]
+#[link(name = "rustllvm", kind = "static")] // not quite true but good enough
 extern "C" {
     // Create and destroy contexts.
     pub fn LLVMContextCreate() -> ContextRef;