Skip to content
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

Build fails because generated .pch file can't be found #2885

Closed
qudix opened this issue Sep 29, 2022 · 2 comments
Closed

Build fails because generated .pch file can't be found #2885

qudix opened this issue Sep 29, 2022 · 2 comments
Labels
Milestone

Comments

@qudix
Copy link

qudix commented Sep 29, 2022

Xmake Version

2.7.1+dev.d4b5d6244

Operating System Version and Architecture

Windows 11

Describe Bug

Often in a bigger project, the build fails because .cpp files cannot open the precompiled header:
image

The mentioned file does not "exist" because the generated .pch doesn't seem to get renamed:
image

And it's not because my precompiled header is called pch.h, I already tried various other names to no avail.

Expected Behavior

The generated .pch should be renamed accordingly so .cpp files can find it.

Project Configuration

Reproducible test: pch-test.zip

Additional Information and Error Logs

I've run this test on the latest dev commit, but this problem has been occurring long before intermittently.

@qudix qudix added the bug label Sep 29, 2022
waruqi added a commit that referenced this issue Sep 29, 2022
@waruqi
Copy link
Member

waruqi commented Sep 29, 2022

I have fixed it, you can try it again. xmake update -s dev

It is caused by cache.

@waruqi waruqi added this to the v2.7.2 milestone Sep 29, 2022
@qudix
Copy link
Author

qudix commented Sep 29, 2022

It works.

@qudix qudix closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants