From 04c3472a9e966fee7210dcdaf892d6f50c200ce1 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 10 May 2022 22:59:27 +0800 Subject: improve mdk rule --- tests/projects/embed/mdk/hello/xmake.lua | 2 +- xmake/rules/mdk/xmake.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/projects/embed/mdk/hello/xmake.lua b/tests/projects/embed/mdk/hello/xmake.lua index 6afb714af..a871721e1 100644 --- a/tests/projects/embed/mdk/hello/xmake.lua +++ b/tests/projects/embed/mdk/hello/xmake.lua @@ -8,6 +8,6 @@ target("foo") target("hello") add_deps("foo") - add_rules("mdk.console") + add_rules("mdk.binary") add_files("src/*.c", "src/*.s") add_includedirs("src/lib/cmsis") diff --git a/xmake/rules/mdk/xmake.lua b/xmake/rules/mdk/xmake.lua index 0c491b528..1d62a2b34 100644 --- a/xmake/rules/mdk/xmake.lua +++ b/xmake/rules/mdk/xmake.lua @@ -18,7 +18,7 @@ -- @file xmake.lua -- -rule("mdk.console") +rule("mdk.binary") on_load(function (target) -- we disable checking flags for cross toolchain automatically target:set("policy", "check.auto_ignore_flags", false) @@ -41,3 +41,5 @@ rule("mdk.static") target:set("kind", "static") end) +rule("mdk.console") + add_deps("mdk.binary") -- cgit v1.3.1