Skip to content

Commit

Permalink
Attempt to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Jan 15, 2021
1 parent 8d9e66f commit fe18e87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 7 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -954,11 +954,16 @@ osname=macosx;processor=x86;processor=x86-64;processor=aarch64;processor=ppc
</and>
</condition>
<!-- Multiple SDKs is common; find the most recent (sort -V requires 10.12+) -->
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" unless:set="make.SDKROOT">
<condition property="darwin.sort" value="true">
<matches string="${os.prefix}" pattern="^darwin-"/>
</condition>
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" if:set="darwin.sort" unless:set="make.SDKROOT">
<arg value="-c"/>
<arg line="&quot;ls -d MacOSX10.*.sdk | sort -t &quot;.&quot; -k2 -n | tail -1&quot;"/>
</exec>
<property name="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
<condition property="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
<isset property="sdk-latest"/>
</condition>

<!-- Windows' drive letters and spaces in absolute paths wreak havoc on
make -->
Expand Down
10 changes: 7 additions & 3 deletions native/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,16 @@
</and>
</condition>
<!-- Multiple SDKs is common; find the most recent (sort -V requires 10.12+) -->
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" unless:set="make.SDKROOT">
<condition property="darwin.sort" value="true">
<matches string="${os.prefix}" pattern="^darwin-"/>
</condition>
<exec executable="sh" dir="${sdk-parent}" outputproperty="sdk-latest" if:set="darwin.sort" unless:set="make.SDKROOT">
<arg value="-c"/>
<arg line="&quot;ls -d MacOSX10.*.sdk | sort -t &quot;.&quot; -k2 -n | tail -1&quot;"/>
</exec>
<property name="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
<echo level="info" message="make.SDKROOT: ${make.SDKROOT}"/>
<condition property="make.SDKROOT" value="SDKROOT=${sdk-parent}/${sdk-latest}"/>
<isset property="sdk-latest"/>
</condition>

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

0 comments on commit fe18e87

Please sign in to comment.