Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ if(BUILD_STATIC_RUNTIME)
add_library(tvm_runtime STATIC
$<TARGET_OBJECTS:tvm_runtime_objs>
$<TARGET_OBJECTS:tvm_libinfo_objs>
$<TARGET_OBJECTS:tvm_ffi_objs>
${TVM_RUNTIME_EXT_OBJS}
)
set(NOTICE_MULTILINE
Expand Down
2 changes: 1 addition & 1 deletion ffi/cmake/Utils/Library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.
function(add_dsymutil target_name)
# running dsymutil on macos to generate debugging symbols for backtraces
if(APPLE)
if(APPLE AND TVM_FFI_USE_LIBBACKTRACE)
find_program(DSYMUTIL dsymutil)
mark_as_advanced(DSYMUTIL)
add_custom_command(TARGET ${target_name}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/metal/metal_module.mm
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void operator()(ffi::PackedArgs args, ffi::Any* rv, const ArgUnion64* pack_args)
auto it = fmap_.find(name);
if (it == fmap_.end()) {
ret = ffi::Function();
return ret;
return;
}
const FunctionInfo& info = it->second;
MetalWrappedFunc f;
Expand Down
Loading