Skip to content

Commit 8402cf8

Browse files
committed
Fix incorrect warning when sdk_version is cleared
1 parent 57eb55f commit 8402cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/port1.0/portutil.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3386,7 +3386,7 @@ proc _check_xcode_version {} {
33863386
}
33873387
}
33883388

3389-
if {${os.major} >= 18 && [file tail [option configure.sdkroot]] ne "MacOSX[option configure.sdk_version].sdk"} {
3389+
if {${os.major} >= 18 && [option configure.sdk_version] ne "" && [file tail [option configure.sdkroot]] ne "MacOSX[option configure.sdk_version].sdk"} {
33903390
ui_warn "The macOS [option configure.sdk_version] SDK does not appear to be installed. Ports may not build correctly."
33913391
ui_warn "You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'."
33923392
}

0 commit comments

Comments
 (0)