-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
toolchain 判断 是否交叉编译错误 #5774
Comments
Title: toolchain determines whether there is a cross-compilation error |
这不是错误,之前才是不对的,使用 clang-cl 编译不属于交叉编译,不应该根据全局的 目前 clang-cl toolchain 仅支持 vs 内置 clang-cl 以及在 PATH 中的 clang-cl ,并不支持切到指定 sdk |
This is not an error, it was wrong before. Compiling with clang-cl is not cross-compilation, and it should not be treated as cross compilation according to the global Currently, the clang-cl toolchain only supports VS built-in clang-cl and clang-cl in PATH, and does not support switching to the specified sdk. |
将clang-cl 目录放到PATH, 能够检测到PATH里面的clang-cl, 编译调用的是vs 内置的, 这样 和 vs 内置 的优先级是怎么样的?
|
卸载了 msvc 的 正常了 |
After uninstalling msvc, it became normal. |
试下这个 patch 应该可以了. #5780
|
Xmake 版本
2.9.6
操作系统版本和架构
Windows 11 专业版 23H2 22631.4317
描述问题
编译的时候调用的是 msvc clang-cl ,并非 config 设置的 K:\IDE\llvm\llvm-19.1.2\bin\clang-cl.exe
经过排查 没有通过 config.get("sdk") 获取sdk目录:
问题链接
以前的版本 是直接调用的 self:sdkdir() 获取的sdk 目录
期待的结果
正确识别 设置的sdk目录
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: