diff --git a/xmake/ascend.lua b/xmake/ascend.lua index e51626d1d..6179cac13 100644 --- a/xmake/ascend.lua +++ b/xmake/ascend.lua @@ -23,7 +23,8 @@ rule("ascend-kernels") before_link(function () local ascend_build_dir = path.join(os.projectdir(), "src/infiniop/devices/ascend") os.cd(ascend_build_dir) - os.exec("make") + os.rm("build") + os.exec("make build") os.cp("$(projectdir)/src/infiniop/devices/ascend/build/lib/libascend_kernels.a", builddir.."/") os.cd(os.projectdir())