mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
*: 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.
This commit is contained in:
parent
9067d9735a
commit
94d02b896c
@ -316,7 +316,7 @@ impl Step for TestHelpers {
|
|||||||
.warnings(false)
|
.warnings(false)
|
||||||
.debug(false)
|
.debug(false)
|
||||||
.file(build.src.join("src/rt/rust_test_helpers.c"))
|
.file(build.src.join("src/rt/rust_test_helpers.c"))
|
||||||
.compile("librust_test_helpers.a");
|
.compile("rust_test_helpers");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,6 +140,6 @@ fn main() {
|
|||||||
cc::Build::new()
|
cc::Build::new()
|
||||||
.flag("-fvisibility=hidden")
|
.flag("-fvisibility=hidden")
|
||||||
.file("pthread_atfork_dummy.c")
|
.file("pthread_atfork_dummy.c")
|
||||||
.compile("libpthread_atfork_dummy.a");
|
.compile("pthread_atfork_dummy");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,5 +56,5 @@ fn main() {
|
|||||||
cfg.file(Path::new("../libcompiler_builtins/compiler-rt/lib/profile").join(src));
|
cfg.file(Path::new("../libcompiler_builtins/compiler-rt/lib/profile").join(src));
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.compile("libprofiler-rt.a");
|
cfg.compile("profiler-rt");
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@ fn main() {
|
|||||||
.file("../rustllvm/ArchiveWrapper.cpp")
|
.file("../rustllvm/ArchiveWrapper.cpp")
|
||||||
.cpp(true)
|
.cpp(true)
|
||||||
.cpp_link_stdlib(None) // we handle this below
|
.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);
|
let (llvm_kind, llvm_link_arg) = detect_llvm_link(major, minor, &llvm_config);
|
||||||
|
|
||||||
|
@ -27,6 +27,6 @@ fn main() {
|
|||||||
.warnings(false)
|
.warnings(false)
|
||||||
.include(src_dir)
|
.include(src_dir)
|
||||||
.warnings(false)
|
.warnings(false)
|
||||||
.compile("libhoedown.a");
|
.compile("hoedown");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user