summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/armlink.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/armlink.lua')
-rw-r--r--xmake/modules/core/tools/armlink.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/armlink.lua b/xmake/modules/core/tools/armlink.lua
index 02c2b4800..e25a81967 100644
--- a/xmake/modules/core/tools/armlink.lua
+++ b/xmake/modules/core/tools/armlink.lua
@@ -41,6 +41,13 @@ function nf_linkdir(self, dir)
return {"--userlibpath", dir}
end
+-- make runtime flag
+function nf_runtime(self, runtime)
+ if runtime == "microlib" then
+ return "--library_type=microlib"
+ end
+end
+
-- make the link arguments list
function linkargv(self, objectfiles, targetkind, targetfile, flags)
return self:program(), table.join("-o", targetfile, objectfiles, flags)