Missed a couple of .to_str().unwrap()s

This commit is contained in:
Richard Feldman 2022-11-22 18:51:01 -05:00
parent 3d6b383a4e
commit 806e3e2ac7
No known key found for this signature in database
GPG Key ID: F1F21AA5B1D9E43B
2 changed files with 5 additions and 2 deletions

View File

@ -155,7 +155,7 @@ pub fn build_zig_host_native(
"-fPIE",
"-rdynamic", // make sure roc_alloc and friends are exposed
shared_lib_path.to_str().unwrap(),
builtins_host_file.path(),
builtins_host_file.path().to_str().unwrap(),
]);
} else {
zig_cmd.args(["build-obj", "-fPIC"]);

View File

@ -202,7 +202,10 @@ pub fn helper(
app_o_file.clone(),
// Long term we probably want a smarter way to link in zig builtins.
// With the current method all methods are kept and it adds about 100k to all outputs.
&[app_o_file.to_str().unwrap(), &builtins_host_file.path()],
&[
app_o_file.to_str().unwrap(),
builtins_host_file.path().to_str().unwrap(),
],
LinkType::Dylib,
)
.expect("failed to link dynamic library");