Skip to content

Commit

Permalink
Correct linking
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Oct 5, 2024
1 parent b908b9f commit 20953fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ fn main() {
node_platform, node_arch
);

assert!(link_lib(&lib_path, "executorch", false).is_ok());
if !link_lib(&lib_path, "executorch_no_prim_ops", false).is_ok() {
assert!(link_lib(&lib_path, "executorch_core", false).is_ok());
assert!(link_lib(&lib_path, "executorch", true).is_ok());
if !link_lib(&lib_path, "executorch_no_prim_ops", true).is_ok() {
assert!(link_lib(&lib_path, "executorch_core", true).is_ok());
}
if !link_lib(&lib_path, "extension_module_static", false).is_ok() {
assert!(link_lib(&lib_path, "extension_module", false).is_ok());
Expand All @@ -99,6 +99,9 @@ fn main() {
assert!(link_lib(&lib_path, "quantized_kernels", false).is_ok());
}

// Custom Ops
let _ = link_lib(&lib_path, "custom_ops", true);

// Tensor extension
let _ = link_lib(&lib_path, "extension_tensor", false);

Expand Down

0 comments on commit 20953fc

Please sign in to comment.