You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2021/05/01 11:44:15 UTC
[tvm] branch main updated: Correctly build with -runtime=c without
-system-lib (#7954)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 6d555b6 Correctly build with -runtime=c without -system-lib (#7954)
6d555b6 is described below
commit 6d555b6b439be990b22983482068999ca2f5a678
Author: Christoph Gerum <ch...@uni-tuebingen.de>
AuthorDate: Sat May 1 13:44:02 2021 +0200
Correctly build with -runtime=c without -system-lib (#7954)
---
python/tvm/driver/build_module.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/tvm/driver/build_module.py b/python/tvm/driver/build_module.py
index 9f56a9b..4682e34 100644
--- a/python/tvm/driver/build_module.py
+++ b/python/tvm/driver/build_module.py
@@ -436,7 +436,7 @@ def build(inputs, args=None, target=None, target_host=None, name="default_functi
target_host = Target(target_host)
if (
target_host.attrs.get("runtime", tvm.runtime.String("c++")) == "c"
- and target_host.attrs.get("system-lib", 0).value == 1
+ and target_host.attrs.get("system-lib", 0) == 1
):
if target_host.kind.name == "c":
create_csource_crt_metadata_module = tvm._ffi.get_global_func(