Skip to content

[sycl-jit] Fix missing build rule for resource-shard-*.cpp with Makefiles generator - #22848

Open
wenju-he wants to merge 1 commit into
intel:syclfrom
wenju-he:fix-sycl-jit-resource-shard-Makefiles
Open

[sycl-jit] Fix missing build rule for resource-shard-*.cpp with Makefiles generator#22848
wenju-he wants to merge 1 commit into
intel:syclfrom
wenju-he:fix-sycl-jit-resource-shard-Makefiles

Conversation

@wenju-he

@wenju-he wenju-he commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

The generated resource-shard-N.cpp files were declared as BYPRODUCTS of the generate.py custom command rather than OUTPUT. CMake's Unix/ NMake Makefiles generators don't emit build rules for BYPRODUCTS (unlike Ninja, which tracks byproducts as first-class outputs), so a fresh build fails with "No rule to make target
'resource-shard-0.cpp'". Moving the shard files into OUTPUT gives Make a proper rule to produce them alongside resource.cpp.

…iles generator

The generated resource-shard-N.cpp files were declared as BYPRODUCTS
of the generate.py custom command rather than OUTPUT. CMake's Unix/
NMake Makefiles generators don't emit build rules for BYPRODUCTS
(unlike Ninja, which tracks byproducts as first-class outputs), so a
fresh build fails with "No rule to make target
'resource-shard-0.cpp'". Moving the shard files into OUTPUT gives
Make a proper rule to produce them alongside resource.cpp.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@wenju-he
wenju-he requested review from a team and cperkinsintel as code owners August 1, 2026 02:31
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.

1 participant