We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clang --version
1 parent 0bab726 commit 257d751Copy full SHA for 257d751
src/xcode.jl
@@ -9,6 +9,13 @@ function _is_xcode_clt()
9
@debug "_active_compiler_is_xcode_clt(): Attempting to run command" cmd
10
# The `ignorestatus` allows us to proceed if the command does not run successfully.
11
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
19
installed_dir_m = match(r"\nInstalledDir: ([\w\/]*?)\n", output)
20
if isnothing(installed_dir_m)
21
return (; b=false, ver=nothing)
0 commit comments