Skip to content
Snippets Groups Projects
Commit 639329cf authored by Dominyk Tiller's avatar Dominyk Tiller
Browse files

xcode: update regex

Ensures we capture Clang's fourth-digit when it exists. This seems to be on pre-release
versions of OS X only, but is the cause of the misdetection of CLT up-to-date status
on 10.11 several weeks ago.

For full explanation, see Homebrew/homebrew#42261.

Closes Homebrew/homebrew#42261.
parent a9b9c5ad
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ module OS
else
version = `/usr/bin/clang --version`
end
version = version[%r{clang-(\d+\.\d+\.\d+)}, 1] || "0"
version = version[%r{clang-(\d+\.\d+\.\d+(\.\d+)?)}, 1] || "0"
version < latest_version
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment