From 3beb788baa443b17fa378e0e2f282aa486561657 Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 13 Mar 2023 12:17:39 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=20StripAOTDllCommand?= =?UTF-8?q?=E7=94=B1=E4=BA=8E=E7=BC=93=E5=AD=98=E5=8E=9F=E5=9B=A0=EF=BC=8C?= =?UTF-8?q?=E6=9C=89=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=B7=BB=E5=8A=A0BuildOptions.CleanBuildCache?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E8=A7=A3=E5=86=B3=E3=80=82=E6=AD=A4=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=9C=A8Unity=202021=E5=8F=8A=E6=9B=B4=E9=AB=98?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=96=B0=E5=A2=9E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Commands/StripAOTDllCommand.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Editor/Commands/StripAOTDllCommand.cs b/Editor/Commands/StripAOTDllCommand.cs index a6d99e4..0a66cfc 100644 --- a/Editor/Commands/StripAOTDllCommand.cs +++ b/Editor/Commands/StripAOTDllCommand.cs @@ -38,6 +38,9 @@ namespace HybridCLR.Editor.Commands BashUtil.RemoveDir(outputPath); var buildOptions = BuildOptions.BuildScriptsOnly; +#if UNITY_2021_1_OR_NEWER + buildOptions |= BuildOptions.CleanBuildCache; +#endif bool oldExportAndroidProj = EditorUserBuildSettings.exportAsGoogleAndroidProject; #if UNITY_EDITOR_OSX