Skip to content

Slow CMake builds due to repeated file regeneration on MacOS #5991

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

Open
vinh-truong-sc opened this issue Feb 7, 2025 · 1 comment
Open

Comments

@vinh-truong-sc
Copy link

Hi, I have included SPIRV-Tools into my project as a dependency with FetchContent. I configure and build my project with these commands:

cmake -G Xcode -B build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --target my_project | xcpretty

This is fine, but repeated runs of cmake --build build ... keep regenerating files in SPIRV-Tools, which causes major rebuilds every time:

Image

This command doesn't seem to have any issues on Windows, and building my project inside Xcode works fine 🤔.

@s-perron
Copy link
Collaborator

If you find the issue let us know, you can open a PR. We will consider it.

It seems like this might be related to how you handle spirv-headers in your project. Those files get rebuilt when spirv-headers change. I'm not sure why the build thinks they have been updated. I'm also not positioned to look into it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants