Skip to content

Conversation

@Arthapz
Copy link
Member

@Arthapz Arthapz commented May 20, 2025

fixes #6472

to fix clang-cl this patch disable the two phase compilation support see llvm/llvm-project#140825

@Arthapz Arthapz force-pushed the fix-clang-cl-modules branch 12 times, most recently from bec2d84 to d9db1db Compare May 20, 2025 23:37
@Arthapz Arthapz force-pushed the fix-clang-cl-modules branch 3 times, most recently from 0132587 to 628e6c7 Compare May 21, 2025 04:35
@Arthapz
Copy link
Member Author

Arthapz commented May 22, 2025

ok found a better way to fix it llvm/llvm-project#140825 (comment)

@Arthapz Arthapz force-pushed the fix-clang-cl-modules branch from 628e6c7 to 481ada9 Compare May 22, 2025 06:52
@Arthapz
Copy link
Member Author

Arthapz commented May 22, 2025

this patch works at least with our tests cases (pch excluded) but i think we shouldn't advertise that XMake support clang-cl + modules as it's not well tested and it seems to cause some issues to the CMake guys that are not resolved yet, see llvm/llvm-project#121046 (comment)

@Arthapz Arthapz marked this pull request as ready for review May 22, 2025 11:16
@waruqi
Copy link
Member

waruqi commented May 22, 2025

Thanks, maybe we can add some warnings to prompt users.

@waruqi waruqi merged commit 9d6f52f into xmake-io:dev May 22, 2025
22 checks passed
@waruqi waruqi added this to the v3.0.0 milestone May 22, 2025
@Arthapz Arthapz deleted the fix-clang-cl-modules branch September 18, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clang-cl编译C++module出现错误

2 participants