File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -954,11 +954,16 @@ osname=macosx;processor=x86;processor=x86-64;processor=aarch64;processor=ppc
954
954
</and >
955
955
</condition >
956
956
<!-- 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" >
958
961
<arg value =" -c" />
959
962
<arg line =" "ls -d MacOSX10.*.sdk | sort -t "." -k2 -n | tail -1"" />
960
963
</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 >
962
967
963
968
<!-- Windows' drive letters and spaces in absolute paths wreak havoc on
964
969
make -->
Original file line number Diff line number Diff line change 307
307
</and >
308
308
</condition >
309
309
<!-- 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" >
311
314
<arg value =" -c" />
312
315
<arg line =" "ls -d MacOSX10.*.sdk | sort -t "." -k2 -n | tail -1"" />
313
316
</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 >
316
320
317
321
<!-- Windows drive letters, separator and spaces in absolute paths wreak havoc on make -->
318
322
<condition property =" make.BUILD"
You can’t perform that action at this time.
0 commit comments