summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-25 17:07:10 +0800
committerGitHub <[email protected]>2025-02-25 17:07:10 +0800
commite789f102f3963a471c94e6da4df1ad70adfa8f9f (patch)
tree48f8961deb103b7152fdac18dd8761955c303d0e /xmake/rules
parentfdca3b2904d158ab22f402f647fb9c34eaf2e587 (diff)
parent87693d5c7c360b3218032bc2bff4253a27ad0425 (diff)
Merge pull request #6170 from xmake-io/kotlin
Add kotlin native package support
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/kotlin-native/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/kotlin-native/xmake.lua b/xmake/rules/kotlin-native/xmake.lua
index 386c85677..f2bd9ed5c 100644
--- a/xmake/rules/kotlin-native/xmake.lua
+++ b/xmake/rules/kotlin-native/xmake.lua
@@ -21,6 +21,7 @@
rule("kotlin-native.build")
set_sourcekinds("kc")
on_load(function (target)
+ target:add("kcflags", "-opt-in=kotlinx.cinterop.ExperimentalForeignApi", {force = true})
if target:is_static() then
target:add("arflags", {"-produce", "static"}, {force = true})
target:add("includedirs", target:targetdir(), {interface = true})