diff options
| author | ruki <[email protected]> | 2026-03-20 22:33:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-20 22:33:30 +0800 |
| commit | 2b0964deaf94355eea91dff12d017525b49c3737 (patch) | |
| tree | 8fc1d3decacbf9d2371ef58f96ebbad13316627e /xmake/modules | |
| parent | faac0865a79ef38c47bb81d7fa3b42f05ace5538 (diff) | |
remove native_aot
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/dotnet.lua | 12 |
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 |
