File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,6 @@ func (library *Library) String() string {
83
83
// - the library is architecture independent
84
84
// - the library doesn't specify any `architecture` field in library.properties
85
85
func (library * Library ) SupportsAnyArchitectureIn (archs ... string ) bool {
86
- if len (library .Architectures ) == 0 {
87
- return true
88
- }
89
86
if library .IsArchitectureIndependent () {
90
87
return true
91
88
}
@@ -113,7 +110,7 @@ func (library *Library) IsOptimizedForArchitecture(arch string) bool {
113
110
// compatible with all architectures (the `architecture` field in
114
111
// library.properties contains the `*` item)
115
112
func (library * Library ) IsArchitectureIndependent () bool {
116
- return library .IsOptimizedForArchitecture ("*" )
113
+ return library .IsOptimizedForArchitecture ("*" ) || library . Architectures == nil || len ( library . Architectures ) == 0
117
114
}
118
115
119
116
// SourceDir represents a source dir of a library
You can’t perform that action at this time.
0 commit comments