Merge the stage1,2,3.mk files into a common definition in stageN.mk, more rearrangement of host/target libs.
This commit is contained in:
parent
c4265209a6
commit
fafb42e6b1
8 changed files with 149 additions and 214 deletions
|
|
@ -41,7 +41,7 @@ fn llvm_err(session::session sess, str msg) {
|
|||
}
|
||||
|
||||
fn link_intrinsics(session::session sess, ModuleRef llmod) {
|
||||
auto path = fs::connect(sess.get_opts().sysroot, "intrinsics.bc");
|
||||
auto path = fs::connect(sess.get_opts().sysroot, "lib/intrinsics.bc");
|
||||
auto membuf =
|
||||
llvm::LLVMRustCreateMemoryBufferWithContentsOfFile(str::buf(path));
|
||||
if (membuf as uint == 0u) {
|
||||
|
|
|
|||
|
|
@ -508,7 +508,7 @@ fn main(vec[str] args) {
|
|||
}
|
||||
|
||||
let str glu = binary_dir + "/lib/glue.o";
|
||||
let str main = "rt/main.o";
|
||||
let str main = binary_dir + "/lib/main.o";
|
||||
let str stage = "-L" + binary_dir + "/lib";
|
||||
let str prog = "gcc";
|
||||
// The invocations of gcc share some flags across platforms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue