diff options
| author | ruki <[email protected]> | 2025-02-13 23:28:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-02-13 23:28:25 +0800 |
| commit | 86c6203b4602b92abb8cf8f6ed8d4143b6bd1f00 (patch) | |
| tree | 255ea416981c52b3b62effecb2a1433ca9789886 /xmake/rules | |
| parent | 6d10d9caded550963cd07bf5a189a8d1d12a3c5d (diff) | |
add shared library for kotlin
Diffstat (limited to 'xmake/rules')
| -rw-r--r-- | xmake/rules/kotlin-native/xmake.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/kotlin-native/xmake.lua b/xmake/rules/kotlin-native/xmake.lua index a75cc8062..7b359094a 100644 --- a/xmake/rules/kotlin-native/xmake.lua +++ b/xmake/rules/kotlin-native/xmake.lua @@ -22,7 +22,9 @@ rule("kotlin-native.build") set_sourcekinds("kc") on_load(function (target) if target:is_static() then - target:add("kcflags", {"-produce", "static"}, {force = true}) + target:add("arflags", {"-produce", "static"}, {force = true}) + elseif target:is_shared() then + target:add("shflags", {"-produce", "dynamic"}, {force = true}) end end) on_build("build.target") |
