Skip to content

Commit

Permalink
refactor: move lld-rs to seperate repository
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed May 14, 2022
1 parent cdfda48 commit 124eeba
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 582 deletions.
2 changes: 1 addition & 1 deletion crates/mun_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hir = { version = "=0.3.0", path = "../mun_hir", package = "mun_hir" }
itertools = "0.9.0"
mun_codegen_macros = { version = "=0.1.0", path = "../mun_codegen_macros", package = "mun_codegen_macros" }
mun_target = { version = "=0.3.0", path = "../mun_target" }
mun_lld = { version = "=120.0.1", path = "../mun_lld" }
lld_rs = { version = "=120.0.1", git = "https://github.com/mun-lang/lld-rs.git" }
anyhow = "1.0.31"
thiserror = "1.0.19"
salsa = "0.16.1"
Expand Down
6 changes: 3 additions & 3 deletions crates/mun_codegen/src/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Linker for LdLinker {
}

fn finalize(&mut self) -> Result<(), LinkerError> {
mun_lld::link(mun_lld::LldFlavor::Elf, &self.args)
lld_rs::link(lld_rs::LldFlavor::Elf, &self.args)
.ok()
.map_err(LinkerError::LinkError)
}
Expand Down Expand Up @@ -144,7 +144,7 @@ impl Linker for Ld64Linker {
}

fn finalize(&mut self) -> Result<(), LinkerError> {
mun_lld::link(mun_lld::LldFlavor::MachO, &self.args)
lld_rs::link(lld_rs::LldFlavor::MachO, &self.args)
.ok()
.map_err(LinkerError::LinkError)
}
Expand Down Expand Up @@ -194,7 +194,7 @@ impl Linker for MsvcLinker {
}

fn finalize(&mut self) -> Result<(), LinkerError> {
mun_lld::link(mun_lld::LldFlavor::Coff, &self.args)
lld_rs::link(lld_rs::LldFlavor::Coff, &self.args)
.ok()
.map_err(LinkerError::LinkError)
}
Expand Down
22 changes: 0 additions & 22 deletions crates/mun_lld/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion crates/mun_lld/LICENSE-APACHE

This file was deleted.

1 change: 0 additions & 1 deletion crates/mun_lld/LICENSE-MIT

This file was deleted.

1 change: 0 additions & 1 deletion crates/mun_lld/README.md

This file was deleted.

Loading

0 comments on commit 124eeba

Please sign in to comment.