summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-21 00:46:10 +0800
committerruki <[email protected]>2025-02-21 00:46:10 +0800
commit984fb1d67fe06fe71940bf7bb8dd92b12df486e2 (patch)
tree49e6454713c42b530a53e5378b535de095bb96d6
parente613142a689d913a7513e9d2e03aca921d7dcff4 (diff)
fix kotlin for mingw
-rw-r--r--xmake/modules/core/tools/kotlinc_native.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/kotlinc_native.lua b/xmake/modules/core/tools/kotlinc_native.lua
index be4047d22..8c703477c 100644
--- a/xmake/modules/core/tools/kotlinc_native.lua
+++ b/xmake/modules/core/tools/kotlinc_native.lua
@@ -52,7 +52,7 @@ function build(self, sourcefiles, targetkind, targetfile, flags, opt)
end
end
end
- elseif targetkind == "static" and self:is_plat("windows", "mingw") then
+ elseif targetkind == "static" and self:is_plat("windows") then
local headerfile_real = targetfile .. "_api.h"
local headerfile = path.join(path.directory(targetfile), "lib" .. path.basename(targetfile) .. "_api.h")
if os.isfile(headerfile_real) then
@@ -63,7 +63,7 @@ function build(self, sourcefiles, targetkind, targetfile, flags, opt)
if os.isfile(targetfile_real) then
os.mv(targetfile_real, targetfile)
end
- elseif targetkind == "shared" and self:is_plat("windows", "mingw") then
+ elseif targetkind == "shared" and self:is_plat("windows") then
local headerfile_real = path.join(path.directory(targetfile), path.basename(targetfile) .. "_api.h")
local headerfile = path.join(path.directory(targetfile), "lib" .. path.basename(targetfile) .. "_api.h")
if os.isfile(headerfile_real) then