Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

fix the compile flag in function _linux_compile from --shared to -shared #99

Open
wants to merge 1 commit into
base: relax
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion python/tvm/contrib/cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def _linux_compile(output, objects, options, compile_cmd, compile_shared=False):
cmd += ["-c"]
else:
if compile_shared or output.endswith(".so") or output.endswith(".dylib"):
cmd += ["--shared"]
cmd += ["-shared"]
cmd += ["-o", output]
if isinstance(objects, str):
cmd += [objects]
Expand Down