Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
b0330c38
Commit
b0330c38
authored
15 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
Move gcc version check.
parent
11e779d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/brew_doctor.rb
+18
-16
18 additions, 16 deletions
Library/Homebrew/brew_doctor.rb
with
18 additions
and
16 deletions
Library/Homebrew/brew_doctor.rb
+
18
−
16
View file @
b0330c38
...
...
@@ -27,6 +27,23 @@ def check_for_other_package_managers
end
end
def
check_gcc_versions
gcc_42
=
gcc_42_build
gcc_40
=
gcc_40_build
if
gcc_42
<
RECOMMENDED_GCC_42
puts
"Your gcc 4.2.x version is older than the recommended version. It may be advisable"
puts
"to upgrade to the latest release of Xcode."
puts
end
if
gcc_40
<
RECOMMENDED_GCC_40
puts
"Your gcc 4.0.x version is older than the recommended version. It may be advisable"
puts
"to upgrade to the latest release of Xcode."
puts
end
end
def
brew_doctor
read
,
write
=
IO
.
pipe
...
...
@@ -35,22 +52,7 @@ def brew_doctor
$stdout
.
reopen
write
check_for_stray_dylibs
gcc_42
=
gcc_42_build
gcc_40
=
gcc_40_build
if
gcc_42
<
RECOMMENDED_GCC_42
puts
"Your gcc 4.2.x version is older than the recommended version. It may be advisable"
puts
"to upgrade to the latest release of Xcode."
puts
end
if
gcc_40
<
RECOMMENDED_GCC_40
puts
"Your gcc 4.0.x version is older than the recommended version. It may be advisable"
puts
"to upgrade to the latest release of Xcode."
puts
end
check_gcc_versions
check_for_other_package_managers
check_for_x11
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment