File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/Xamarin.Android.Build.Tasks/Utilities Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
using System . IO ;
4
4
using System . Text ;
5
5
6
+ using Microsoft . Android . Build . Tasks ;
6
7
using Microsoft . Build . Framework ;
7
8
using Microsoft . Build . Utilities ;
8
9
using Xamarin . Android . Tools ;
@@ -67,12 +68,13 @@ public static List<ITaskItem> EmbedBinary (
67
68
string outputDirectory ,
68
69
bool missingContentOK )
69
70
{
71
+ var ret = new List < ITaskItem > ( ) ;
70
72
if ( supportedAbis . Count < 1 ) {
71
- throw new ArgumentException ( "At least one target ABI must be present" , nameof ( supportedAbis ) ) ;
73
+ log . LogDebugMessage ( "ELFEmbeddingHelper: at least one target ABI must be specified. Probably a DTB build, skipping generation." ) ;
74
+ return ret ;
72
75
}
73
76
74
77
string llvmMcPath = GetLlvmMcPath ( androidBinUtilsDirectory ) ;
75
- var ret = new List < ITaskItem > ( ) ;
76
78
foreach ( string abi in supportedAbis ) {
77
79
EmbedBinary (
78
80
log ,
@@ -98,11 +100,12 @@ public static List<ITaskItem> EmbedBinary (
98
100
string outputDirectory ,
99
101
bool missingContentOK )
100
102
{
103
+ var ret = new List < ITaskItem > ( ) ;
101
104
if ( String . IsNullOrEmpty ( abi ) ) {
102
- throw new ArgumentException ( "Must be a supported ABI name" , nameof ( abi ) ) ;
105
+ log . LogDebugMessage ( "ELFEmbeddingHelper: ABI must be specified. Probably a DTB build, skipping generation." ) ;
106
+ return ret ;
103
107
}
104
108
105
- var ret = new List < ITaskItem > ( ) ;
106
109
EmbedBinary (
107
110
log ,
108
111
ret ,
You can’t perform that action at this time.
0 commit comments