This is an automated email from the ASF dual-hosted git repository.
echuraev 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 482b3c2c99 [Fix] Fix the typo in compile flag (#15542)
482b3c2c99 is described below
commit 482b3c2c998e345f7daffa7bfff099898dc7b4c6
Author: Haolin Zhang <[email protected]>
AuthorDate: Mon Aug 14 07:12:39 2023 -0700
[Fix] Fix the typo in compile flag (#15542)
Fix the compile flag typo from --shared to -shared in fucntion
_linux_compile
---
python/tvm/contrib/cc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/tvm/contrib/cc.py b/python/tvm/contrib/cc.py
index ce02a132e2..b69c925411 100644
--- a/python/tvm/contrib/cc.py
+++ b/python/tvm/contrib/cc.py
@@ -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]