File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/main/java/com/google/devtools/build/lib/analysis/platform Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ public static Platform getPlatformProto(
76
76
? remoteOptions .getRemoteDefaultExecProperties ()
77
77
: ImmutableSortedMap .of ();
78
78
79
- // TODO Rewrite `spawn.getExecutionPlatform() == null`, should always be set
80
- if (spawn .getExecutionPlatform () == null
79
+ if ((spawn .getExecutionPlatform () == null || spawn .getExecutionPlatform ().execProperties ().isEmpty ())
81
80
&& spawn .getCombinedExecProperties ().isEmpty ()
82
81
&& defaultExecProperties .isEmpty ()
83
82
&& additionalProperties .isEmpty ()) {
@@ -134,10 +133,6 @@ public static Platform getPlatformProto(
134
133
}
135
134
}
136
135
137
- if (properties .size () == 0 ) {
138
- return null ;
139
- }
140
-
141
136
Platform .Builder platformBuilder = Platform .newBuilder ();
142
137
for (Map .Entry <String , String > entry : properties .entrySet ()) {
143
138
platformBuilder .addPropertiesBuilder ().setName (entry .getKey ()).setValue (entry .getValue ());
You can’t perform that action at this time.
0 commit comments