use file to write llvm linker script
This commit is contained in:
parent
8c9a75b323
commit
b91ceb88de
@ -2046,7 +2046,8 @@ fn install_llvm_file(
|
|||||||
// projects like miri link against librustc_driver.so. We don't use a symlink, as
|
// projects like miri link against librustc_driver.so. We don't use a symlink, as
|
||||||
// these are not allowed inside rustup components.
|
// these are not allowed inside rustup components.
|
||||||
let link = t!(fs::read_link(source));
|
let link = t!(fs::read_link(source));
|
||||||
t!(std::fs::write(full_dest, format!("INPUT({})\n", link.display())));
|
let mut linker_script = t!(fs::File::create(full_dest));
|
||||||
|
t!(write!(linker_script, "INPUT({})\n", link.display()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
builder.install(&source, destination, 0o644);
|
builder.install(&source, destination, 0o644);
|
||||||
|
Loading…
Reference in New Issue
Block a user