-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_requires("cuda", {configs = {shared = true}}) 编译命令里会同时链接cudart和cudart_static #5855
Comments
Xmake version2.9.6 Operating system version and architectureUbuntu20.04 Describe the problemWhen using ![I{ Expected resultsrepair Project configurationadd_requires("cuda", {configs = {shared = true}})
target("test")
--......
add_packages("cuda") Additional information and error logs
|
xmake cuda rule: local cudart = false
for _, link in ipairs(table.join(target:get("links") or {}, target:get("syslinks"))) do
if link == "cudart" or link == "cudart_static" then
cudart = true
break
end
end
if not cudart then
target:add("syslinks", "cudart_static")
end 所以先不要用 |
是不是 |
|
Is there a |
|
Xmake 版本
2.9.6
操作系统版本和架构
Ubuntu20.04
描述问题
在使用
add_requires("cuda", {configs = {shared = true}})
,然后add_packages("cuda")
时,编译命令里生成的链接命令 同时链接了动态库和静态库-lcudart -lcudart_static
期待的结果
修复
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: