xmake-io / xmake

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

升级VS后导致PCH报错 #5413

Closed MaxwellGengYF closed 1 month ago

MaxwellGengYF commented 2 months ago

Xmake 版本

2.9.3

操作系统版本和架构

Windows

描述问题

更新VS后,出现报错: error: Microsoft Visual C/C++ Version differs in PCH file vs. current file 执行 xmake c -a 后仍然报错,需要手动删除 .xmake .build 文件夹

期待的结果

检测到MSVC版本更新后,重新编译PCH

工程配置

set_pcxxheader("pch.h")

附加信息和错误日志

error: Microsoft Visual C/C++ Version differs in PCH file vs. current file

Issues-translate-bot commented 2 months ago

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


Title: PCH error reported after upgrading VS

Xmake version

2.9.3

Operating system version and architecture

Windows

Describe the problem

After updating VS, an error occurred: error: Microsoft Visual C/C++ Version differs in PCH file vs. current file After executing xmake c -a, an error is still reported. You need to manually delete the .xmake .build folder.

Expected results

After detecting the MSVC version update, recompile PCH

Project configuration

set_pcxxheader("pch.h")

Additional information and error logs

error: Microsoft Visual C/C++ Version differs in PCH file vs. current file

waruqi commented 1 month ago

再试试,xmake update -s github:xmake-io/xmake#pch

https://github.com/xmake-io/xmake/pull/5435

Issues-translate-bot commented 1 month ago

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


Try again, xmake update -s github:xmake-io/xmake#pch