Skip to content

Commit 94d02b8

Browse files
committed
*: 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.
1 parent 9067d97 commit 94d02b8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl Step for TestHelpers {
316316
.warnings(false)
317317
.debug(false)
318318
.file(build.src.join("src/rt/rust_test_helpers.c"))
319-
.compile("librust_test_helpers.a");
319+
.compile("rust_test_helpers");
320320
}
321321
}
322322

src/liballoc_jemalloc/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,6 @@ fn main() {
140140
cc::Build::new()
141141
.flag("-fvisibility=hidden")
142142
.file("pthread_atfork_dummy.c")
143-
.compile("libpthread_atfork_dummy.a");
143+
.compile("pthread_atfork_dummy");
144144
}
145145
}

src/libprofiler_builtins/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ fn main() {
5656
cfg.file(Path::new("../libcompiler_builtins/compiler-rt/lib/profile").join(src));
5757
}
5858

59-
cfg.compile("libprofiler-rt.a");
59+
cfg.compile("profiler-rt");
6060
}

src/librustc_llvm/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn main() {
169169
.file("../rustllvm/ArchiveWrapper.cpp")
170170
.cpp(true)
171171
.cpp_link_stdlib(None) // we handle this below
172-
.compile("librustllvm.a");
172+
.compile("rustllvm");
173173

174174
let (llvm_kind, llvm_link_arg) = detect_llvm_link(major, minor, &llvm_config);
175175

src/librustdoc/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ fn main() {
2727
.warnings(false)
2828
.include(src_dir)
2929
.warnings(false)
30-
.compile("libhoedown.a");
30+
.compile("hoedown");
3131
}
3232

0 commit comments

Comments
 (0)