Jack Nagel
677cd51977
Use Utils.popen_read in XQuartz version codepath
2014-07-11 15:41:54 -05:00
Jack Nagel
6c3c5b0a84
Loosen GCC version regexp to allow for custom version strings
2014-05-28 22:46:05 -05:00
Mike McQuaid
5955f2a395
os/mac: don't use Formula.factory unnecessarily.
...
Instead check if the path exists by using opt.
2014-05-06 16:45:50 +01:00
Jack Nagel
a8f0872cc0
Remove MacOS.dev_tools_path and MacOS.dev_tools_prefix
...
These methods are no longer required.
2014-05-01 18:36:46 -05:00
Jack Nagel
aa5a5a526f
Rename Xcode.folder to MacOS.active_developer_dir
...
This reflects what Apple calls it in more recent versions of Xcode/OS X.
2014-05-01 18:36:46 -05:00
Jack Nagel
71055aa073
Move xctoolchain_path to Xcode module, where it belongs
2014-05-01 18:36:46 -05:00
Jack Nagel
564b5df261
Trust xcrun now that we error out early for bad xcode-select paths
...
Since ae177adb2bd55ee5ad6367e7639c4cf0c774b63a, we can safely assume
that xcrun works, and a functioning xcrun will search dev_tools_path and
xctoolchain_path, so we can stop doing extra work here.
On CLT-only 10.7 and 10.8, xcrun will not work, but all the tools will
be in /usr/bin, which we check before invoking xcrun. Further, in this
case, dev_tools_path will be /usr/bin, and xctoolchain_path will not
exist, so the fallbacks here are unnecessary.
2014-05-01 18:36:46 -05:00
Jack Nagel
89ed0c544b
Remove unnecessary nil check
2014-05-01 18:22:39 -05:00
Jack Nagel
7052fe89b1
Fix caching of gcc_42_build_version
2014-05-01 16:57:14 -05:00
Jack Nagel
3040bd3aae
Remove outdated comment
2014-05-01 16:47:28 -05:00
Mike McQuaid
55d277c335
Support core GCC formula as a GCC compiler.
...
It is activated by the same mechanism as the Homebrew/versions compilers
which now check if the GCC formula uses the same, correct version.
References Homebrew/homebrew#28418 .
2014-04-23 08:10:48 +01:00
Jack Nagel
dbb527f352
The argument to MacOS.locate is always a string
2014-04-21 22:47:15 -05:00
Jack Nagel
7573855756
Only check Xcode prefix when non-nil
2014-04-21 18:52:12 -05:00
Jack Nagel
24e27465e0
Remove comments that no longer reflect any adjacent code
2014-04-21 18:51:43 -05:00
Jack Nagel
b78a4b7372
Don't call xcrun twice
2014-04-15 11:26:04 -05:00
Jack Nagel
2f052a2f65
Remove another unnecessary check
2014-04-15 11:26:03 -05:00
Clemens Gruber
dbe06bbbfc
Add Xcode 5.1.1 (=Golden master build) clang version
...
Closes Homebrew/homebrew#28173 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-05 09:41:30 -05:00
Jack Nagel
4830bdb5b7
The argument to pkgutil_info is always a string
2014-04-01 20:49:11 -05:00
Jack Nagel
0d3121f781
Batch up mdfind calls when possible
2014-04-01 20:47:26 -05:00
Jack Nagel
5bd5e05541
Recognize Xcode 5.1 and CLT 5.1
...
Closes Homebrew/homebrew#27389 .
Fixes Homebrew/homebrew#27390 .
2014-03-10 15:26:36 -05:00
Mike McQuaid
2a2c9402b9
mac: note that we only track stable Xcode versions.
2014-01-22 17:48:47 -08:00
Misty De Meo
d7a6161751
Recommit ENV changes
2014-01-04 01:20:56 -08:00
Mike McQuaid
e3bb6f6e0b
Revert "default_cc: locate already returns Pathnames"
...
This reverts commit 8ec6123d439e8f4d3586bbca6a426b726bd5e9dd.
2014-01-04 09:14:27 +00:00
Mike McQuaid
4866fd670f
Revert "default_compiler: recognize gcc-4.0"
...
This reverts commit bedcbb806bb8a991a1317b4ccde8d16b6974cc46.
2014-01-04 09:14:26 +00:00
Misty De Meo
ce97caed34
default_compiler: recognize gcc-4.0
2014-01-03 18:25:09 -08:00
Misty De Meo
a6c838b08a
default_cc: locate already returns Pathnames
2014-01-03 18:24:54 -08:00
Mike McQuaid
d7c13f84b6
Update string references to mxcl/homebrew.
2013-12-14 18:18:35 +00:00
Mike McQuaid
4c2e7b1659
Update docs, comment mxcl/homebrew refs.
2013-12-14 18:18:35 +00:00
Jack Nagel
06bf1c0f02
Implement MacOS.dev_tools_prefix a different way
...
Avoid producing a dev_tools_path of "//usr/bin".
Fixes Homebrew/homebrew#24751 .
Closes Homebrew/homebrew#24754 .
2013-11-28 19:27:33 -06:00
Mike McQuaid
48e4fbc8d9
Mac: add dev_tools_prefix method.
...
Basically dev_tools_path without the `/usr/bin`.
2013-11-27 08:53:02 +00:00
Jack Nagel
48e8be2454
Remove caching from MacOS.preferred_arch
...
The really expensive computation is now cached at its source, and this
only caches true anyway.
2013-11-26 20:23:19 -06:00
Jack Nagel
a82276b2cb
Add Xcode 5.0.2 to compiler map
...
Fixes Homebrew/homebrew#24018 .
2013-11-05 22:19:33 -06:00
Misty De Meo
64b472788a
Mac.prefer_64_bit?: fix conditional for 10.4
2013-10-28 08:41:57 -07:00
Mike McQuaid
a7c29271b8
CLT: rename Mavericks CLT path constant.
2013-10-22 22:36:41 +01:00
Misty De Meo
b31f6c0099
OS::Mac: Add Xcode 2.5 compiler
2013-10-20 00:41:08 -07:00
Misty De Meo
a79bc02620
MacOS.gcc_build_version: find GCC when unlinked
...
MacOS.gcc_42_build_version was returning nil if apple-gcc42 was
installed but unlinked, which was disjoint with how other parts of
Homebrew tried to see if it was present.
2013-10-19 23:13:50 -07:00
Jack Nagel
8887fe7606
Move MacOS modules under OS::Mac namespace
...
Closes Homebrew/homebrew#23138 .
2013-10-18 13:38:07 -05:00
Jack Nagel
805472946b
Rename MacOS to OS::Mac
2013-10-18 12:56:51 -05:00