Skip to content

Conversation

@jkwak-work
Copy link
Collaborator

@jkwak-work jkwak-work commented Nov 21, 2025

The previous fix (removing CONFIGURE_DEPENDS), PR 9059, was insufficient because all examples still shared a single generate.stamp file, causing race conditions during parallel builds on Windows.

This gives each example its own CMakeLists.txt subdirectory with isolated generate.stamp files, eliminating the contention completely. Verified with 10 consecutive successful builds.

@jkwak-work jkwak-work self-assigned this Nov 21, 2025
@jkwak-work jkwak-work requested a review from a team as a code owner November 21, 2025 20:40
@jkwak-work jkwak-work added the pr: non-breaking PRs without breaking changes label Nov 21, 2025
@jkwak-work
Copy link
Collaborator Author

Fixes #9037

@jkwak-work jkwak-work force-pushed the fix/intermittent-example-build-error branch from 3b978bf to 2f55587 Compare November 21, 2025 20:53
Copy link
Collaborator

@expipiplus1 expipiplus1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a huge amount of duplicated code between these files, can we factor this out please?

@jkwak-work
Copy link
Collaborator Author

There seems to be a huge amount of duplicated code between these files, can we factor this out please?

You are right.
I can do better about the duplicated lines.
Thanks for pointing it out.

@jkwak-work jkwak-work force-pushed the fix/intermittent-example-build-error branch from 2f55587 to 4175f1d Compare November 24, 2025 22:54
@jkwak-work
Copy link
Collaborator Author

Fixes #9037

@jkwak-work jkwak-work force-pushed the fix/intermittent-example-build-error branch from 4175f1d to 85ca965 Compare November 25, 2025 01:29
@jkwak-work jkwak-work marked this pull request as draft November 25, 2025 01:50
The previous fix (removing CONFIGURE_DEPENDS) was insufficient because all
examples still shared a single generate.stamp file, causing race conditions
during parallel builds on Windows.

This gives each example its own CMakeLists.txt subdirectory with isolated
generate.stamp files, eliminating the contention completely. Verified with
10 consecutive successful builds.
@jkwak-work jkwak-work force-pushed the fix/intermittent-example-build-error branch from 85ca965 to d50a013 Compare November 25, 2025 02:03
@jkwak-work jkwak-work marked this pull request as ready for review November 25, 2025 02:03
@shader-slang shader-slang deleted a comment from slangbot Nov 25, 2025
@expipiplus1 expipiplus1 added this pull request to the merge queue Nov 25, 2025
Merged via the queue into shader-slang:master with commit 970f046 Nov 25, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: non-breaking PRs without breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants