Skip to content

Commit 482b3c2

Browse files
authored
[Fix] Fix the typo in compile flag (#15542)
Fix the compile flag typo from --shared to -shared in fucntion _linux_compile
1 parent 94f6b37 commit 482b3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/contrib/cc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def _linux_compile(output, objects, options, compile_cmd, compile_shared=False):
280280
cmd += ["-c"]
281281
else:
282282
if compile_shared or output.endswith(".so") or output.endswith(".dylib"):
283-
cmd += ["--shared"]
283+
cmd += ["-shared"]
284284
cmd += ["-o", output]
285285
if isinstance(objects, str):
286286
cmd += [objects]

0 commit comments

Comments
 (0)