We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xmake v2.8.5
Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
背景是我编译出来了部分 cuda 静态库,然后需要整合其他 cc 文件导出一个动态库。我设置了 add_cuflags("-Xcompiler -fPIC", {force = true}) ,但是在链接阶段提示:
add_cuflags("-Xcompiler -fPIC", {force = true})
检查了编译命令发现在 devlink 的时候没有 -fPIC:
通过 add_cuflags 的参数在编译 cu.o 文件时生效,但是在 devlink 阶段未传入。
期望能链接出来一个动态库。它包含了部分 cuda 静态库以及其他的 cc 文件。
无
The text was updated successfully, but these errors were encountered:
Bot detected the issue body's language is not English, translate it automatically.
Title: add_cuflags do not take effect in the devlink stage.
Sorry, something went wrong.
用 add_culdflags 命令可以。
Use the add_culdflags command.
No branches or pull requests
Xmake 版本
xmake v2.8.5
操作系统版本和架构
Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
描述问题
背景是我编译出来了部分 cuda 静态库,然后需要整合其他 cc 文件导出一个动态库。我设置了
add_cuflags("-Xcompiler -fPIC", {force = true})
,但是在链接阶段提示:检查了编译命令发现在 devlink 的时候没有 -fPIC:
通过 add_cuflags 的参数在编译 cu.o 文件时生效,但是在 devlink 阶段未传入。
期待的结果
期望能链接出来一个动态库。它包含了部分 cuda 静态库以及其他的 cc 文件。
工程配置
无
附加信息和错误日志
无
The text was updated successfully, but these errors were encountered: