From db68bc02754551c197263a95a2f45975fe387905 Mon Sep 17 00:00:00 2001 From: Haolin Zhang Date: Sun, 13 Aug 2023 04:40:10 +0000 Subject: [PATCH] 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 ce02a132e259..b69c92541199 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]