|
112 | 112 | <_AotOutputType>ObjectFile</_AotOutputType>
|
113 | 113 | </PropertyGroup>
|
114 | 114 |
|
115 |
| - <ItemGroup> |
116 |
| - <MonoAOTCompilerDefaultAotArguments Condition="'$(TargetArchitecture)' == 'arm'" Include="mtriple=armv7-linux-gnueabi" /> |
117 |
| - <MonoAOTCompilerDefaultAotArguments Condition="'$(TargetArchitecture)' == 'arm64'" Include="mtriple=aarch64-linux-android" /> |
118 |
| - <MonoAOTCompilerDefaultAotArguments Condition="'$(TargetArchitecture)' == 'x86'" Include="mtriple=i686-linux-android" /> |
119 |
| - <MonoAOTCompilerDefaultAotArguments Condition="'$(TargetArchitecture)' == 'x64'" Include="mtriple=x86_64-linux-android" /> |
| 115 | + <PropertyGroup> |
| 116 | + <_Triple Condition="'$(TargetArchitecture)' == 'arm'">armv7-linux-gnueabi</_Triple> |
| 117 | + <_Triple Condition="'$(TargetArchitecture)' == 'arm64'">aarch64-linux-android</_Triple> |
| 118 | + <_Triple Condition="'$(TargetArchitecture)' == 'x86'">i686-linux-android</_Triple> |
| 119 | + <_Triple Condition="'$(TargetArchitecture)' == 'x64'">x86_64-linux-android</_Triple> |
| 120 | + </PropertyGroup> |
| 121 | + |
| 122 | + <PropertyGroup> |
| 123 | + <_AsOptions>-target $(_Triple) -c -x assembler</_AsOptions> |
| 124 | + <_LdName>clang</_LdName> |
| 125 | + <_LdOptions>-fuse-ld=lld</_LdOptions> |
| 126 | + <_AsName>clang</_AsName> |
| 127 | + </PropertyGroup> |
120 | 128 |
|
| 129 | + <ItemGroup> |
121 | 130 | <MonoAOTCompilerDefaultAotArguments Include="static" />
|
122 | 131 | <MonoAOTCompilerDefaultAotArguments Include="dwarfdebug" />
|
123 | 132 | <MonoAOTCompilerDefaultAotArguments Condition="'$(_IsLibraryMode)' == 'true'" Include="direct-icalls" />
|
|
141 | 150 | <AndroidLibraryMinApiLevel Condition="'$(AndroidLibraryMinApiLevel)' == ''">21</AndroidLibraryMinApiLevel>
|
142 | 151 | </PropertyGroup>
|
143 | 152 |
|
144 |
| - <NdkToolFinderTask |
145 |
| - Condition="'$(AOTWithLibraryFiles)' == 'true' or '$(_IsLibraryMode)' == 'true'" |
146 |
| - Architecture="$(TargetArchitecture)" |
147 |
| - HostOS="$(_HostOS)" |
148 |
| - MinApiLevel="$(AndroidLibraryMinApiLevel)"> |
149 |
| - <Output TaskParameter="AsPrefixPath" PropertyName="_AsPrefixPath" /> |
150 |
| - <Output TaskParameter="ToolPrefixPath" PropertyName="_ToolPrefixPath" /> |
151 |
| - <Output TaskParameter="Triple" PropertyName="_Triple" /> |
152 |
| - <Output TaskParameter="LdName" PropertyName="_LdName" /> |
153 |
| - <Output TaskParameter="LdPath" PropertyName="_LdPath" /> |
154 |
| - <Output TaskParameter="ClangPath" PropertyName="_ClangPath" /> |
155 |
| - </NdkToolFinderTask> |
156 |
| - |
157 | 153 | <PropertyGroup Condition="'$(AOTWithLibraryFiles)' == 'true' or '$(_IsLibraryMode)' == 'true'">
|
158 | 154 | <_AsPrefixPath>$([MSBuild]::EnsureTrailingSlash('$(_AsPrefixPath)'))</_AsPrefixPath>
|
159 | 155 | <_ToolPrefixPath>$([MSBuild]::EnsureTrailingSlash('$(_ToolPrefixPath)'))</_ToolPrefixPath>
|
|
221 | 217 |
|
222 | 218 | <MonoAOTCompiler
|
223 | 219 | AotModulesTablePath="$(_AotModuleTablePath)"
|
224 |
| - AsPrefix="$(_AsPrefixPath)" |
| 220 | + AsName="$(_AsName)" |
| 221 | + AsOptions="$(_AsOptions)" |
225 | 222 | Assemblies="@(_AotInputAssemblies)"
|
226 | 223 | CompilerBinaryPath="$(_CompilerBinaryPath)"
|
227 | 224 | DirectPInvokes="@(DirectPInvokes)"
|
228 | 225 | DirectPInvokeLists="@(DirectPInvokeLists)"
|
229 | 226 | EnableUnmanagedCallersOnlyMethodsExport="$(_EnableUnmanagedCallersOnlyMethodsExport)"
|
230 | 227 | IntermediateOutputPath="$(_MobileIntermediateOutputPath)"
|
| 228 | + LdName="$(_LdName)" |
| 229 | + LdOptions="$(_LdOptions)" |
231 | 230 | LibraryFormat="$(_AotLibraryFormat)"
|
232 | 231 | LLVMPath="$(_MonoLLVMPath)"
|
233 | 232 | MibcProfilePath="@(ProfiledAOTProfilePaths)"
|
234 | 233 | Mode="$(_AOTMode)"
|
235 | 234 | OutputDir="$(_MobileIntermediateOutputPath)"
|
236 | 235 | OutputType="$(_AotOutputType)"
|
237 |
| - ToolPrefix="$(_ToolPrefixPath)" |
| 236 | + Triple="$(_Triple)" |
238 | 237 | UseAotDataFile="$(_UseAotDataFile)"
|
239 | 238 | UseLLVM="$(MonoEnableLLVM)">
|
240 | 239 | <Output TaskParameter="CompiledAssemblies" ItemName="_AssembliesToBundleInternal" />
|
|
0 commit comments