Skip to content

Commit

Permalink
fix args for linker
Browse files Browse the repository at this point in the history
skc_runtime(staticlib) should be after .bc
  • Loading branch information
yhara committed Nov 4, 2024
1 parent 2944f38 commit f9b5707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/skc_async_experiment/src/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ fn build_clang_cmd(bc_path: &Path, exe_path: PathBuf) -> Command {
}
cmd.arg("-o");
cmd.arg(exe_path.clone());
cmd.arg(bc_path.to_path_buf());
//cmd.arg(from_shiika_root("builtin/builtin.bc"));
let skc_runtime = if cfg!(target_os = "windows") {
"skc_runtime.lib"
} else {
"libskc_runtime.a"
};
cmd.arg(cargo_target_path().join("debug").join(skc_runtime));
cmd.arg(bc_path.to_path_buf());

if cfg!(target_os = "windows") {
cmd.arg("-luser32");
Expand Down

0 comments on commit f9b5707

Please sign in to comment.