about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2017-11-26 16:43:24 -0500
committerTamir Duberstein <tamird@gmail.com>2017-11-28 18:15:30 -0500
commit94d02b896c3feb5e997b95a660e850c7ad8cbe74 (patch)
treec7e59882a9451cd6a4c3107946f80a57d1ec8eeb
parent9067d9735a9ef96f64c32ed41c120faa0976c772 (diff)
downloadrust-94d02b896c3feb5e997b95a660e850c7ad8cbe74.tar.gz
rust-94d02b896c3feb5e997b95a660e850c7ad8cbe74.zip
*: strip calls to cc::Build::compile
The documentation states: "The name output should be the name of the
library." and this is already done in more recently-added callers.
-rw-r--r--src/bootstrap/native.rs2
-rw-r--r--src/liballoc_jemalloc/build.rs2
-rw-r--r--src/libprofiler_builtins/build.rs2
-rw-r--r--src/librustc_llvm/build.rs2
-rw-r--r--src/librustdoc/build.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index ac068ebe651..a5408ee381b 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -316,7 +316,7 @@ impl Step for TestHelpers {
            .warnings(false)
            .debug(false)
            .file(build.src.join("src/rt/rust_test_helpers.c"))
-           .compile("librust_test_helpers.a");
+           .compile("rust_test_helpers");
     }
 }
 
diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs
index a41a04d7cd4..de5006ad396 100644
--- a/src/liballoc_jemalloc/build.rs
+++ b/src/liballoc_jemalloc/build.rs
@@ -140,6 +140,6 @@ fn main() {
         cc::Build::new()
             .flag("-fvisibility=hidden")
             .file("pthread_atfork_dummy.c")
-            .compile("libpthread_atfork_dummy.a");
+            .compile("pthread_atfork_dummy");
     }
 }
diff --git a/src/libprofiler_builtins/build.rs b/src/libprofiler_builtins/build.rs
index 8508b2dae2c..dd88dd933f6 100644
--- a/src/libprofiler_builtins/build.rs
+++ b/src/libprofiler_builtins/build.rs
@@ -56,5 +56,5 @@ fn main() {
         cfg.file(Path::new("../libcompiler_builtins/compiler-rt/lib/profile").join(src));
     }
 
-    cfg.compile("libprofiler-rt.a");
+    cfg.compile("profiler-rt");
 }
diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs
index d860c6c44f0..f294ceb3f38 100644
--- a/src/librustc_llvm/build.rs
+++ b/src/librustc_llvm/build.rs
@@ -169,7 +169,7 @@ fn main() {
        .file("../rustllvm/ArchiveWrapper.cpp")
        .cpp(true)
        .cpp_link_stdlib(None) // we handle this below
-       .compile("librustllvm.a");
+       .compile("rustllvm");
 
     let (llvm_kind, llvm_link_arg) = detect_llvm_link(major, minor, &llvm_config);
 
diff --git a/src/librustdoc/build.rs b/src/librustdoc/build.rs
index 97c9ca1e2d2..276825bd31a 100644
--- a/src/librustdoc/build.rs
+++ b/src/librustdoc/build.rs
@@ -27,6 +27,6 @@ fn main() {
        .warnings(false)
        .include(src_dir)
        .warnings(false)
-       .compile("libhoedown.a");
+       .compile("hoedown");
 }