Skip to content
Snippets Groups Projects
Commit 82dd32e3 authored by Jack Nagel's avatar Jack Nagel
Browse files

Only show gcc build if it's really gcc


Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent 66dcfcd8
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,8 @@ module MacOS extend self
end
def gcc_42_build_version
@gcc_42_build_version ||= if File.exist? "/usr/bin/gcc-4.2"
@gcc_42_build_version ||= if File.exist? "/usr/bin/gcc-4.2" \
and not Pathname.new("/usr/bin/gcc-4.2").realpath.basename.to_s =~ /^llvm/
`/usr/bin/gcc-4.2 --version` =~ /build (\d{4,})/
$1.to_i
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