Skip to content

Commit

Permalink
refactor: simplify the linker code
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jan 30, 2024
1 parent 7974e66 commit 19a911b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kclvm/runner/src/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Command {
.arg(&format!("-Wl,-rpath,{}", &path))
.arg(&format!("-L{}", &path))
.arg(&format!("-I{}/include", self.executable_root))
.arg("-lkclvm_cli_cdylib");
.arg(&format!("-l{KCLVM_LIB_SHORT_NAME}"));
Ok(())
}

Expand Down Expand Up @@ -143,7 +143,7 @@ impl Command {
cmd: &mut std::process::Command,
) -> Result<()> {
cmd.args(libs)
.arg("kclvm_cli_cdylib.lib")
.arg(&format!("{KCLVM_LIB_SHORT_NAME}.lib"))
.arg("/link")
.arg("/NOENTRY")
.arg("/NOLOGO")
Expand Down

0 comments on commit 19a911b

Please sign in to comment.