aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac.rb
AgeCommit message (Collapse)Author
2016-04-22Use GCC 4.2 as the default compiler when installedMisty De Meo
2016-04-22STANDARD_COMPILERS: add Xcode 2.0Misty De Meo
2016-04-22Mac: don't call xcrun on TigerMisty De Meo
2016-04-10xcode: expect 7.3 on 10.11Dominyk Tiller
xcode: expect 7.3 on 10.11
2016-04-04Make Homebrew user agent consistent, use a slash.Mike McQuaid
Generally it seems user agents are all `software/version` but ours is not. Also, set the user agent in a way that it's shared between Bash and Ruby code. Closes https://github.com/Homebrew/legacy-homebrew/pull/50480.
2016-03-31More comments on SDK handling for >= Xcode 7ilovezfs
Closes Homebrew/homebrew#50537. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-03-31OS::Mac::sdk: remove ensure blockilovezfs
Don't use ensure to do the final check because it won't affect the return value of the overall function. Thanks to @xucheng for catching this bug. Closes Homebrew/homebrew#50536. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-03-31Xcode 7 MACOSX_DEPLOYMENT_TARGET and SDK fixesilovezfs
SDK 10.10 isn't something that exists for Xcode 7, so stop looking for it and rely on MACOSX_DEPLOYMENT_TARGET instead. See PR Homebrew/homebrew#50137 Yosemite build failure Closes Homebrew/homebrew#50355. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-02-07os/mac: add Xcode 7.2.1Dominyk Tiller
2016-02-03os/mac: optionally use ruby_macho.William Woodruff
- and branch for dylib_id_and_dylibs - add branches for dylib id changing and change_install_name - rename MachO module to HomebrewMachO to prevent namespace clashes with MachO in ruby-macho. this will eventually be replaced entirely with direct calls to ruby-macho methods - break ruby-macho implementation out into separate RubyMachO module, and include either RubyMachO or CctoolsMachO (the original implementation) based on the HOMEBREW_RUBY_MACHO env var - move ArchitectureListExtension and RubyMachO into separate files - create {ruby_,cctools_,,}relocate.rb for isolation of different methods of mach-o relocation (ruby-macho vs. cctools) - fill in require_install_name_tool? for ruby_relocate.rb - rename {ruby_,cctools_,,}relocate.rb to keg, isolate requires in os/mac Closes Homebrew/homebrew#45001. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-25os/mac: hide GCC warnings in `config` output.Mike McQuaid
2016-01-19os/mac: use start_with? when possibleBaptiste Fontaine
Closes Homebrew/homebrew#48071. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09os/mac: add outdated_release? method.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-14os/mac: indent fixesBaptiste Fontaine
2015-12-10os/mac: add xcode 7.2Dominyk Tiller
2015-12-07MacOS.sdk: return newest SDK if requested not foundMisty De Meo
`MacOS.sdk` and `.sdk_path` will now return the newest installed SDK instead of nil if called on a system that doesn’t have an SDK for the currently-installed OS. For example, Xcode 7 on OS X 10.10 does not include the 10.10 SDK, only the 10.11 SDK; software can be built by specifying both SDKROOT and MACOSX_DEPLOYMENT_TARGET.
2015-12-07MacOS: refactor sdk_path lookupMisty De Meo
* Pull SDK lookup code into a new `locator` class, which caches its results * SDKLocator only queries one SDK location, not all SDK locations * Build a map of all installed SDKs inside that location, instead of just the requested SDK * Ask xcrun for --show-sdk-platform-path first so that all SDKs can be found, instead of asking xcodebuild for a specific SDK * Add a new `SDK` class, which tracks the version and the prefix; add a new `MacOS.sdk` method which returns an `SDK` instance instead of a bare path; MacOS.sdk_path still returns a bare path
2015-11-29mac: expect xcode 7.1.1Dominyk Tiller
2015-10-24xcode: expect xcode 7.1Martin Afanasjew
Closes Homebrew/homebrew#45266. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-23os: centralize check for pre-release OS X versionsMartin Afanasjew
Provide `OS::Mac.prerelease?` for pre-release checks and use it where appropriate. This should simplify updating the test once a new OS X release lands. This also fixes a bug in `BuildError#dump`, where an empty warning message was printed on El Capitan after a failed from-source build, because the check there and the one in `check_for_unsupported_osx` were out of sync. Closes Homebrew/homebrew#45257. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-18move mach.rb to os/mac/mach.rbXu Cheng
2015-10-18MacOS: full_version addedBaptiste Fontaine
Closes Homebrew/homebrew#44988. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-01os: add xcode 7.0.1Dominyk Tiller
2015-08-22use Pathname#executable? directlyXu Cheng
2015-08-21Add no-Xcode documentation for all classes, methodsWilliam Woodruff
2015-08-21Add guards to calls that would trigger Xcode install requestsWilliam Woodruff
add guard in Formula#file_modified? to prevent git popup add guard in Superenv.bin before calling MacOS::Xcode.version add guard against missing Xcode/CLT in Xcode.uncached_version return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21Install: add BuildToolsError and BuildFlagsErrorWilliam Woodruff
Add these new errors, and guards in formula installation and cmd/{,un,re}install to match, move can_build? to the MacOS module, flatten conditions, remove redundant can_build? check reinstate removed (doctor) check
2015-08-21MacOS: update locate_cctoolWilliam Woodruff
This becomes MacOS.{install_name_tool,otool}, only do check_xcode if xcode is installed, otherwise emit a warning
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-08mac: add xcode 6.4 expectationDominyk Tiller
2015-06-27Remove unused methodJack Nagel
2015-06-14os: initial El Capitan supportDominyk Tiller
2015-05-21os: support xcode 6.3.2Dominyk Tiller
Closes Homebrew/homebrew#39909. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-19non_apple_gcc_version: support gcc5Xu Cheng
Closes Homebrew/homebrew#39899. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-23os/mac: add xcode 6.3.1 supportDominyk Tiller
2015-04-09os: support xcode 6.3Dominyk Tiller
It’s Christmas. New stable OS X version, new Swift version, new Xcode, new CLT and a new Clang version. Closes Homebrew/homebrew#38468. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-10os: support xcode 6.2Dominyk Tiller
Presume this will need to wait for the bots to be updated, but Xcode 6.2 has landed. Closes Homebrew/homebrew#37549. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-04Use more https in urls and updated some lost linksViktor Szakats
Closes Homebrew/homebrew#35531. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-16Use Utils.popen_read to avoid shelling out in a few placesJack Nagel
2014-12-03os: xcode bumpDominyk Tiller
Bumps to the latest Xcode 6.1.1. Closes Homebrew/homebrew#34632. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-18Xcode 6.0.1Jack Nagel
Closes Homebrew/homebrew#32394.
2014-09-10Prefer Xcode 6.1 on 10.10Dominyk Tiller
More Yosemite changes. Within two weeks or so, Xcode should be made available on the App Store, at which point 10.9 will need to go from “5.1.1” to “6.0” but whilst Yosemite is in Beta *everyone* should be using the Xcode Beta builds according to Apple, so Yosemite should be on 6.1 for the foreseeable, even when Apple releases Xcode 6.0 to 10.9 & below. 6.1 is still using the same Clang version number at this point. Closes Homebrew/homebrew#32201. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-08-09Initial Yosemite SupportDominyk Tiller
Closes Homebrew/homebrew#31435. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-24OS::Mac: allow clearing compiler version cache.Mike McQuaid
Without this it’s impossible for brew-test-bot to be able to verify if installing GCC has allowed it to fix a compiler selection failure.
2014-07-13Use a hash to cache compiler version lookupsJack Nagel
2014-07-11Read if no block is passed to Utils.popen_readJack Nagel
2014-07-11Use Utils.popen_read in XQuartz version codepathJack Nagel
2014-05-28Loosen GCC version regexp to allow for custom version stringsJack Nagel
2014-05-06os/mac: don't use Formula.factory unnecessarily.Mike McQuaid
Instead check if the path exists by using opt.
2014-05-01Remove MacOS.dev_tools_path and MacOS.dev_tools_prefixJack Nagel
These methods are no longer required.