Skip to content

Commit

Permalink
Correctly build with -runtime=c without -system-lib (#7954)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerum authored May 1, 2021
1 parent 1c5684c commit 6d555b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/driver/build_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6d555b6

Please sign in to comment.