diff options
| author | ruki <[email protected]> | 2021-10-26 23:27:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-26 23:27:19 +0800 |
| commit | dea09f243e33b43c8c8be40d8a471b4580db1de7 (patch) | |
| tree | 86b3b01f70fb6285cbbec3f5b457a04235dd7f78 /xmake/rules | |
| parent | 80dd8e90c0eea596298463e521e64b27c4995a4d (diff) | |
improve armlink
Diffstat (limited to 'xmake/rules')
| -rw-r--r-- | xmake/rules/mdk/xmake.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/rules/mdk/xmake.lua b/xmake/rules/mdk/xmake.lua index 640d40aee..f45e04c6e 100644 --- a/xmake/rules/mdk/xmake.lua +++ b/xmake/rules/mdk/xmake.lua @@ -30,3 +30,13 @@ rule("mdk.console") target:set("extension", ".axf") end end) + +rule("mdk.static") + on_load(function (target) + -- we disable checking flags for cross toolchain automatically + target:set("policy", "check.auto_ignore_flags", false) + target:set("policy", "check.auto_map_flags", false) + + -- set default output binary + target:set("kind", "static") + end) |
