aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
AgeCommit message (Collapse)Author
2017-02-23Add needs :cxx14Shaun Jackman
2016-12-30ENV: deprecate old methods.Mike McQuaid
These should have been deprecated long ago but we didn’t really have the necessary framework to do so.
2016-11-18Prefer brewed Clang over gcc-6 for needs :openmpAlex Wang
Clang has fully implemented OpenMP support as of LLVM 3.7, so if OpenMP is required by a formula gcc is no longer the only choice of compiler. Clang should be preferred over gcc because using gcc meant linking against libstdc++, which is ABI incompatible with libc++. This may be unnoticeable for some users, but it causes other builds to fail, e.g. pstoedit when imagemagick was built with OpenMP. pstoedit is required for the octave formula, so for some users this could be a significant problem.
2016-11-14Merge pull request #1435 from mistydemeo/dev_tools_versionMisty De Meo
Add "null version" class, and return compiler versions/build versions as Version objects
2016-11-14No empty `when`s.Markus Reiter
2016-11-10CompilerSelector: fix null check, testsMisty De Meo
2016-11-10Return compiler versions and builds as VersionsMisty De Meo
2016-09-25RuboCop: Style/CaseEqualityMarkus Reiter
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-17rubocop --auto-correct all remaining files.Mike McQuaid
But remove some manual `.freeze`s on constants that shouldn't be constants.
2016-09-14Teach brew to recognize gcc-HEAD as valid compilerAlex Wang
Building gcc with --HEAD results in most of the executables not having a version suffix, e.g. Building/installing gcc 6 would result in gcc-6, g++-6, etc. being installed, while building/installing gcc --HEAD would result in gcc-, g++-, etc. being installed. The lack of a version suffix prevented brew from recognizing a valid gcc install, resulting in brew instructing users to install gcc before building certain formulae even though gcc is installed. A patch to the gcc formula makes the version number for --HEAD builds the major version number of the stable version + 1 (7 at this time). This patch teaches brew to recognize current --HEAD builds as valid compilers.
2016-05-22Remove LLVM-GCC support. (#252)Mike McQuaid
At this point it's never a good compiler to use so let's just remove it.
2016-05-08Make development tools code cross-platform.Mike McQuaid
2016-04-29compilers: support gcc 6Izaak Beekman
2016-01-03compilers: use comma consistentlyDominyk Tiller
2015-12-26Revert "minor perf improvements"Baptiste Fontaine
This reverts commit 16a2a8274a7808e63a6c78475e12a7c0ef5812ef.
2015-12-26minor perf improvementsBaptiste Fontaine
Closes Homebrew/homebrew#47224. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-29More API documentation.Mike McQuaid
And remove the documented stuff from the `example-formula.rb`. Closes Homebrew/homebrew#43241. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-19Remove workarounds for destructuring single-element hashesJack Nagel
2015-06-19Move some constants from env to compiler constantsJack Nagel
2015-05-17Revert "Remove conditional"Jack Nagel
This method may see values originating HOMEBREW_CC. This reverts commit 9c74f42962090c016143744b057e13aa75d9b13e.
2015-05-08Remove conditionalJack Nagel
2015-05-08compilers: support gcc 5なつき
Closes Homebrew/homebrew#39470. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-04-23compilers: blacklist llvm from :openmpIan Lancaster
Closes Homebrew/homebrew#38912. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-21Stop recording the fails_with cause internallyJack Nagel
The string passed as the cause is currently unused, so we don't need to actually store it.
2014-09-18Make --cc override the compiler selectorJack Nagel
2014-09-18Replace CompilerQueue with predetermined priority listsJack Nagel
2014-09-18Move Compiler struct into CompilerSelector namespaceJack Nagel
2014-09-18Remove fails_with? from the formula instanceJack Nagel
2014-08-06Don't use Hash#firstJack Nagel
Fixes Homebrew/homebrew#31360.
2014-08-03Add inspect to CompilerFailureJack Nagel
2014-08-03Eliminate a nil checkJack Nagel
2014-08-03Remove dead codeJack Nagel
2014-08-03Eliminate consideration of major_versionJack Nagel
The major version is implicit in the compiler name. Since the name is used when matching failures to compilers, we don't need to consider the major version separately.
2014-08-03Use a separate class for GNU compiler failuresJack Nagel
major_version is now only used internally by the failure object
2014-08-03Move compiler failure matching logic into failure objectJack Nagel
2014-08-03Rename compiler attribute to nameJack Nagel
2014-08-03Don't pass nil to fails_with?Jack Nagel
2014-08-01Eagerly create and reuse cxx11 compiler failure objectsJack Nagel
2014-08-01Remove knowledge of DSL implementation from initializeJack Nagel
2014-07-29--cc=: make GNU_GCC checks stricterMisty De Meo
Fixes Homebrew/homebrew#30668
2014-07-02Move constants so we don't have to load all of ENV to get themJack Nagel
2014-06-16Combine conditionalsJack Nagel
2014-06-16Place alias adjacent to aliased methodJack Nagel
2014-06-16Remove unused method aliasJack Nagel
Unlike CompilerFailure, the interface of Compiler is entirely internal, so we don't need to maintain compatibility with anything.
2014-06-11Eliminate an uninitialized ivar warningJack Nagel
2014-06-11Decouple CompilerSelector from MacOS, clean up testsJack Nagel
2014-06-11Pass the version into the Compiler constructor, eliminate a type checkJack Nagel