Skip to content

Commit 257d751

Browse files
committed
Add a comment with example output of clang --version
1 parent 0bab726 commit 257d751

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/xcode.jl

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ function _is_xcode_clt()
99
@debug "_active_compiler_is_xcode_clt(): Attempting to run command" cmd
1010
# The `ignorestatus` allows us to proceed if the command does not run successfully.
1111
output = "\n" * strip(read(ignorestatus(cmd), String)) * "\n"
12+
13+
# If this is an Xcode Clang compiler, example output would be:
14+
# > Apple clang version 16.0.0 (clang-1600.0.26.3)
15+
# > Target: arm64-apple-darwin23.6.0
16+
# > Thread model: posix
17+
# > InstalledDir: /Library/Developer/CommandLineTools/usr/bin
18+
1219
installed_dir_m = match(r"\nInstalledDir: ([\w\/]*?)\n", output)
1320
if isnothing(installed_dir_m)
1421
return (; b=false, ver=nothing)

0 commit comments

Comments
 (0)