Skip to content

Commit fe18e87

Browse files
committed
Attempt to fix CI
1 parent 8d9e66f commit fe18e87

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

build.xml

+7-2
Original file line numberDiff line numberDiff line change
@@ -954,11 +954,16 @@ osname=macosx;processor=x86;processor=x86-64;processor=aarch64;processor=ppc
954954
</and>
955955
</condition>
956956
<!-- Multiple SDKs is common; find the most recent (sort -V requires 10.12+) -->
957-
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" unless:set="make.SDKROOT">
957+
<condition property="darwin.sort" value="true">
958+
<matches string="${os.prefix}" pattern="^darwin-"/>
959+
</condition>
960+
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" if:set="darwin.sort" unless:set="make.SDKROOT">
958961
<arg value="-c"/>
959962
<arg line="&quot;ls -d MacOSX10.*.sdk | sort -t &quot;.&quot; -k2 -n | tail -1&quot;"/>
960963
</exec>
961-
<property name="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
964+
<condition property="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
965+
<isset property="sdk-latest"/>
966+
</condition>
962967

963968
<!-- Windows' drive letters and spaces in absolute paths wreak havoc on
964969
make -->

native/build.xml

+7-3
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,16 @@
307307
</and>
308308
</condition>
309309
<!-- Multiple SDKs is common; find the most recent (sort -V requires 10.12+) -->
310-
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" unless:set="make.SDKROOT">
310+
<condition property="darwin.sort" value="true">
311+
<matches string="${os.prefix}" pattern="^darwin-"/>
312+
</condition>
313+
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" if:set="darwin.sort" unless:set="make.SDKROOT">
311314
<arg value="-c"/>
312315
<arg line="&quot;ls -d MacOSX10.*.sdk | sort -t &quot;.&quot; -k2 -n | tail -1&quot;"/>
313316
</exec>
314-
<property name="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
315-
<echo level="info" message="make.SDKROOT: ${make.SDKROOT}"/>
317+
<condition property="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
318+
<isset property="sdk-latest"/>
319+
</condition>
316320

317321
<!-- Windows drive letters, separator and spaces in absolute paths wreak havoc on make -->
318322
<condition property="make.BUILD"

0 commit comments

Comments
 (0)