-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
MinGW平台上cmake包编译问题 #5518
Comments
1. Set clang++ and g++ first since we use the first c++ compiler in the toolchain to build the package 2. Try to detect ninja when use a toolchain without mingw 3. see xmake-io#5518
既然不存在 mingw 环境,就不要设置
走 xmake/xmake/modules/package/tools/cmake.lua Line 595 in 8dd37a6
|
设置成 cross,但有些包限制了。。 |
1. Set clang++ and g++ first since we use the first c++ compiler in the toolchain to build the package 2. Try to detect ninja when use a toolchain without mingw 3. see xmake-io#5518
有挺多包描述不支持cross平台的,或者改成包默认支持cross平台? |
Title: cmake package compilation problem on MinGW platform |
Since there is no mingw environment, do not set
Cross-compiling with xmake/xmake/modules/package/tools/cmake.lua Line 595 in 8dd37a6
|
Set to cross, but some packages have restrictions. . |
There are quite a few package descriptions that do not support the cross platform. Or should the package be changed to support the cross platform by default? |
试下这个 patch. #5521 |
local mingw = assert(package:build_getenv("mingw") or package:build_getenv("sdk"), "mingw not found!") 要用ninja了说明没mingw环境了,这里是不是不应该用断言了?可以改为 local mingw = package:build_getenv("mingw") or package:build_getenv("sdk") or "" |
再试试 |
try again |
现在可以正常使用了 |
Now it can be used normally |
Xmake 版本
xmake v2.9.4+HEAD.e85b001f1
操作系统版本和架构
Windows 11 24H2
描述问题
mingw32-make.exe
。而xmake在mingw平台上默认需要该工具。期待的结果
工程配置
附加信息和错误日志
注意到链接时使用的是
D:\\Tools\\clang\\bin\\clang.exe
而不是clang++
。The text was updated successfully, but these errors were encountered: