diff options
| author | Stefan Boberg <[email protected]> | 2026-08-03 17:11:55 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-08-03 17:11:55 +0200 |
| commit | fc4815711a4bb7c67140f175d564492294b51b34 (patch) | |
| tree | 31d992b83bdddedac92b4697bf105f30ae9ce6cf | |
| parent | 0268519c8f86d2983790cc1f7bffaa8e25bbb558 (diff) | |
fix ninja generator: emit build edge for win.sdk.resource sourcebatches
The rule mrc definition was emitted and the .rc.obj was listed as a link
input, but no build edge was generated for it, so a clean ninja build
failed with "missing and no known rule to make it".
Fixes #7682
Co-Authored-By: Claude Fable 5 <[email protected]>
| -rw-r--r-- | xmake/plugins/project/ninja/build_ninja.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/plugins/project/ninja/build_ninja.lua b/xmake/plugins/project/ninja/build_ninja.lua index f89915e02..bd9a3d292 100644 --- a/xmake/plugins/project/ninja/build_ninja.lua +++ b/xmake/plugins/project/ninja/build_ninja.lua @@ -37,7 +37,8 @@ function _sourcebatch_is_built(sourcebatch) local rulename = sourcebatch.rulename if rulename == "c.build" or rulename == "c++.build" or rulename == "asm.build" or rulename == "cuda.build" - or rulename == "objc.build" or rulename == "objc++.build" then + or rulename == "objc.build" or rulename == "objc++.build" + or rulename == "win.sdk.resource" then return true end end |
