xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.82k stars 774 forks source link

xmake更新之后原有工程编译不了 #4769

Closed Dozingfiretruck closed 6 months ago

Dozingfiretruck commented 6 months ago

Xmake 版本

2.8.7

操作系统版本和架构

win10

描述问题

貌似把warning当做错误了,只要出现这个warning,后面不管编译什么都当做错误停止 bb9cc9a4029d7620dbcb2b4c985678ae

期待的结果

正常编译

工程配置

仓库地址 : https://gitee.com/openLuat/luatos-soc-air101

附加信息和错误日志

error: gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead ..\LuatOS\components\luatfonts\luat_lib_fonts.c:1:0: error: bad value (ck804ef) for -mtune= switch /* ^

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: The original project cannot be compiled after xmake is updated.

waruqi commented 6 months ago

xmake 不会处理 warning 只会判断 gcc 的 exit code ,非 0 就退出。

即使有错,也是 Gcc 报错导致,可以对比前后 flags 的差异

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


xmake will not handle warnings and will only judge the exit code of gcc. If it is not 0, it will exit.

Even if there is an error, it is caused by Gcc error. You can compare the difference in flags before and after.

Dozingfiretruck commented 6 months ago

xmake 不会处理 warning 只会判断 gcc 的 exit code ,非 0 就退出。

即使有错,也是 Gcc 报错导致,可以对比前后 flags 的差异

没有差异,工程不变,只更新xmake,2.8.6一切正常

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


xmake will not handle warnings, but will only judge the exit code of gcc, and exit if it is not 0.

Even if there is an error, it is caused by Gcc error. You can compare the difference in flags before and after

There is no difference, the project remains unchanged, only xmake is updated, everything is normal with 2.8.6

waruqi commented 6 months ago

再试下。。xmake update -s dev; xmake f -c

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


Try again. . xmake update -s dev; xmake f -c

Dozingfiretruck commented 6 months ago

再试下。。xmake update -s dev; xmake f -c

可以了,这个影响应该比较大,下个版本是不是会提前发布

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


Try again. . xmake update -s dev; xmake f -c

Okay, this impact should be relatively large. Will the next version be released in advance?

waruqi commented 6 months ago

看情况。

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


It depends.

waruqi commented 6 months ago

更新了。

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


updated.