Skip to content

Commit

Permalink
[Fix] Fix the typo in compile flag (apache#15542)
Browse files Browse the repository at this point in the history
Fix the compile flag typo from --shared to -shared in fucntion _linux_compile
  • Loading branch information
Chrisz236 authored Aug 14, 2023
1 parent 94f6b37 commit 482b3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/contrib/cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,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

0 comments on commit 482b3c2

Please sign in to comment.