File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 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
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 =" "ls -d MacOSX10.*.sdk | sort -t "." -k2 -n | tail -1"" />
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 -->
Original file line number Diff line number Diff line change 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 =" "ls -d MacOSX10.*.sdk | sort -t "." -k2 -n | tail -1"" />
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"
You can’t perform that action at this time.
0 commit comments