summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/dotnet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/dotnet.lua')
-rw-r--r--xmake/modules/core/tools/dotnet.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/xmake/modules/core/tools/dotnet.lua b/xmake/modules/core/tools/dotnet.lua
index 90d585b87..9a502b616 100644
--- a/xmake/modules/core/tools/dotnet.lua
+++ b/xmake/modules/core/tools/dotnet.lua
@@ -97,10 +97,7 @@ end
-- make the build arguments list
function buildargv(self, sourcefiles, targetkind, targetfile, flags, opt)
- -- use `dotnet publish` for NativeAOT, otherwise `dotnet build`
- local target = opt and opt.target
- local publish_aot = target and target:values("csharp.publish_aot")
- local argv = {publish_aot and "publish" or "build"}
+ local argv = {"build"}
-- add .csproj file
local csprojfile = _get_csprojfile(opt)
@@ -126,11 +123,4 @@ function build(self, sourcefiles, targetkind, targetfile, flags, opt)
os.mkdir(path.directory(targetfile))
local program, argv = buildargv(self, sourcefiles, targetkind, targetfile, flags, opt)
os.runv(program, argv, {envs = self:runenvs()})
-
- -- fix install_name for NativeAOT shared library on macOS
- local target = opt and opt.target
- local publish_aot = target and target:values("csharp.publish_aot")
- if publish_aot and targetkind == "shared" and self:is_plat("macosx", "iphoneos", "watchos") then
- os.runv("install_name_tool", {"-id", "@rpath/" .. path.filename(targetfile), targetfile})
- end
end