summaryrefslogtreecommitdiff
path: root/xmake/modules/core
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-25 23:09:21 +0800
committerruki <[email protected]>2025-02-25 23:09:21 +0800
commitac47c85eb55b510b6b40a567ad86fb02a7a25425 (patch)
treef56fd0b3a46e5c2f2379310027ca4e4b3ebe16dc /xmake/modules/core
parentc1fac4f233b9c33b897ec3348d908d9560eff385 (diff)
improve links
Diffstat (limited to 'xmake/modules/core')
-rw-r--r--xmake/modules/core/tools/kotlinc_native.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/kotlinc_native.lua b/xmake/modules/core/tools/kotlinc_native.lua
index 8c703477c..c785f646f 100644
--- a/xmake/modules/core/tools/kotlinc_native.lua
+++ b/xmake/modules/core/tools/kotlinc_native.lua
@@ -30,6 +30,11 @@ import("lib.detect.find_tool")
function init(self)
end
+-- make the link flag
+function nf_link(self, lib)
+ return {"-l", lib}
+end
+
-- make the build arguments list
function buildargv(self, sourcefiles, targetkind, targetfile, flags, opt)
return self:program(), table.join(flags, sourcefiles, "-o", targetfile)