diff options
| author | ruki <[email protected]> | 2025-08-11 23:13:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-11 23:13:36 +0800 |
| commit | a9732fa5cb1b0447740b3e50cbd972627f96e505 (patch) | |
| tree | 3b86da91f06b4bb3f5c7b5f03bd552dfc3da27be | |
| parent | 7dd79e468b3cf5c66f7b1bc4077bc12602fe7b92 (diff) | |
check unknown package rules #6682
| -rw-r--r-- | xmake/core/sandbox/modules/import/core/project/project.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua index d28fde282..b869cb10a 100644 --- a/xmake/core/sandbox/modules/import/core/project/project.lua +++ b/xmake/core/sandbox/modules/import/core/project/project.lua @@ -159,6 +159,9 @@ function sandbox_core_project._load_package_rules_for_target(target) target:rule_add(dep) end end + else + -- @see https://github.com/xmake-io/xmake/issues/6682 + raise("target(\"%s\"): unknown package rule in add_rules(\"%s\")", target:fullname(), rulename) end end end |
