Skip to content

Commit 0bab726

Browse files
committed
Fix a bug, fix spelling, and improve a log message
1 parent abc5663 commit 0bab726

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xcode.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# output to determine whether or not the compiler is an Xcode Clang.
33
#
44
# The return value is a NamedTuple of the form (; b, ver)
5-
# b = a Bool that is true iff he compiler is an Xcode Clang.
5+
# b = a Bool that is true iff the compiler is an Xcode Clang.
66
# ver = the version number of the Xcode Clang. If it's not Xcode Clang, ver is nothing.
77
function _is_xcode_clt()
88
cmd = `$(get_compiler_cmd()) --version`
@@ -25,7 +25,7 @@ function _is_xcode_clt()
2525
ver_str = strip(m[1])
2626
ver = tryparse(VersionNumber, ver_str)
2727
if isnothing(ver)
28-
@warn "Could not determine the version of the Xcode Command Line Tools"
28+
@warn "Could not determine the version of the Xcode Command Line Tools" ver_str
2929
(; b=false, ver=nothing)
3030
end
3131
b = true
@@ -43,7 +43,7 @@ end
4343
function _is_xcode_clt_and_is_gte_xcode_15()
4444
str = strip(get(ENV, "JULIA_PACKAGECOMPILER_XCODE_CLT_MAJOR_VERSION", ""))
4545
ver_int = tryparse(Int, str)
46-
(ver_int isa Int) && return ver_int
46+
(ver_int isa Int) && return (ver_int >= 15)
4747

4848
result = _is_xcode_clt()
4949
if result.b

0 commit comments

Comments
 (0)