-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
xmake对zig的支持有问题 #5963
Comments
Title: xmake has a problem with zig support |
得这样明确指定p和a才行
上面失败是因为 x86_64-windows-msvc 这个默认目标不行 |
You have to specify p and a clearly like this
The above fails because the default target x86_64-windows-msvc does not work |
windows上gnu的libc可以用了,但是如果依赖是通过cmake构建的会提示
myzig.bat内容如下,单独用来编译程序是没问题的
|
See #5915 |
如果我把bat改名为zig.bat。在PATH环境变量放到最前面,同时修改bat
这样用,xmake的逻辑会很奇怪
xmake会拼接build-obj到zig后 |
总结一下,windows下,xmake配合zig的问题 如果手动指定了cxx、ld等参数是不是就应该原样传入 |
更新到dev之后没问题了 |
After updating to dev, there is no problem |
使用dev分支
创建一个c++项目,修改xmake.lua
输出存在颜色相关的乱码
|
不清楚,如果是偶发的就暂时忽略,一些其他子进程也会 break 掉 console color code 导致乱码,比如 git submodule update 等,有些 case 避免不了。
这个跟 xmake 也没啥关系吧,另外包目前仅仅支持常规 gcc/clang/msvc 系切换,其他工具链,暂时没精力维护,ci 上也没压测过,是否编译通过,看你人品,你可以自己排查改进,这边没人力提供支持。 |
I'm not sure. If it's accidental, just ignore it for now. Some other sub-processes will also break the console color code and cause garbled characters, such as git submodule update, etc. Some cases cannot be avoided.
This has nothing to do with xmake. In addition, the package currently only supports regular gcc/clang/msvc system switching. I have no energy to maintain other tool chains for the time being, and there is no stress test on ci. Whether the compilation passes depends on your character. You can check and improve yourself. |
Xmake 版本
v2.9.6+dev.ee024dc44
操作系统版本和架构
windows 11
描述问题
在xmake的文档中提到了三种用zig去编译c++项目的方式
新建一个c++项目,尝试上面的方法,编译会报错
但是如果手动去调用zig c++编译是没问题的
期待的结果
xmake正确调用zig进行交叉编译
工程配置
已提供
附加信息和错误日志
已提供
The text was updated successfully, but these errors were encountered: