summaryrefslogtreecommitdiff
path: root/xmake/rules/csharp/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-20 22:33:30 +0800
committerruki <[email protected]>2026-03-20 22:33:30 +0800
commit2b0964deaf94355eea91dff12d017525b49c3737 (patch)
tree8fc1d3decacbf9d2371ef58f96ebbad13316627e /xmake/rules/csharp/config.lua
parentfaac0865a79ef38c47bb81d7fa3b42f05ace5538 (diff)
remove native_aot
Diffstat (limited to 'xmake/rules/csharp/config.lua')
-rw-r--r--xmake/rules/csharp/config.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/xmake/rules/csharp/config.lua b/xmake/rules/csharp/config.lua
index 452e0e39c..e9dbc71e0 100644
--- a/xmake/rules/csharp/config.lua
+++ b/xmake/rules/csharp/config.lua
@@ -45,16 +45,6 @@ function main(target)
target:data_set("csharp.csproj", csprojfile)
- -- for NativeAOT shared library, export targetfile directly for C/C++ consumers
- -- dotnet outputs without lib prefix, so we use ldflags with full path
- local publish_aot = target:values("csharp.publish_aot")
- if publish_aot and target:is_shared() then
- target:data_set("inherit.links.deplink", false)
- -- on Windows, MSVC linker needs import library (.lib), not .dll
- local linkfile = target:artifactfile("implib") or target:targetfile()
- target:add("ldflags", linkfile, {interface = true, force = true})
- end
-
-- add native shared library search paths for P/Invoke
for _, dep in ipairs(target:orderdeps()) do
if dep:is_shared() and not dep:rule("csharp.build") then