aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
AgeCommit message (Collapse)Author
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
2014-04-14CompilerFailure: llvm can't build C++11 eitherMisty De Meo
2014-04-12CompilerFailure: don't mutate compiler hashesMisty De Meo
Fixes Homebrew/homebrew#28357.
2014-04-12Formula: provide compiler failure collectionsMisty De Meo
`needs` allows formulae to specify dependencies on cross-compiler dependencies, allowing multiple failures to be specified in a single statement. For instance, `needs :cxx11` adds seven compiler failures. Closes Homebrew/homebrew#22912.
2013-12-12Put positive case first, drop redundant is_a? checkJack Nagel
2013-12-03Adjust fails_with syntax for non-Apple compilersMisty De Meo
The old version worked like this: fails_with :gcc => '4.8.1' That wasn't really flexible enough, and made it harder to distinguish different releases in the same GCC series. Since no one was really using it yet, this adjusts the syntax to be more similar to the Apple compilers: fails_with :gcc => '4.8' do release '4.8.1' end Like with Apple compilers, omitting `release` blacklists the entire series. This also unifies the `build` and `version` attributes and accessors, and exposes them under both names.
2013-12-03Make CompilerSelectionError an InstallationErrorJack Nagel
Fixes Homebrew/homebrew#19962.
2013-09-10Compiler priority: fix llvm-gcc priorityMisty De Meo
llvm-gcc should still get priority over non-Apple GCCs. Fixes Homebrew/homebrew#22424.
2013-09-01Remove attr_rw for CompilerFailure version attributeMisty De Meo
This reverts commit 7db9ef9650a44ef8155bf66efd88703e580057b0.
2013-09-01CompilerFailure: specify attr_rw for versionMisty De Meo
2013-09-01Implement fails_with for non-Apple compilersMisty De Meo
This adds support for non-Apple GCC compilers in the fails_with code. A fails_with block for a non-Apple compiler looks like: fails_with :gcc => '4.8.1' do cause 'Foo' end Non-Apple compilers don't have build numbers, so compiler failures are based on version strings instead. Internally non-Apple compilers can be distinguished because they are passed around as strings instead of symbols. In addition, this alters the priority list for compilers, with the following changes: * Apple GCC 4.2 and LLVM-GCC swap positions, with GCC now taking priority. (Maybe LLVM-GCC should just go away.) * Non-Apple GCC compilers are ranked below GCC 4.2 but above LLVM-GCC and Apple GCC 4.0.
2013-06-12Remove unused variableJack Nagel
2013-06-04Extract attr_rw from Formula for reuseJack Nagel
Closes Homebrew/homebrew#20239.
2013-05-20Add gcc 4.0 to CompilerSelector compiler queueMisty De Meo
2013-05-20CompilerSelector: raise when no compatible compilerMisty De Meo
This replaces the old behaviour of falling back to the original compiler with no messaging. Fixes Homebrew/homebrew#19170. Fixes mistydemeo/tigerbrew#45.
2013-05-08Add gcc-4.0 to fails_withMisty De Meo