Commit Graph
11 Commits
Author SHA1 Message Date
Jack Nagel 6ab348ea0a Decouple CompilerSelector from ENV 2013-03-16 13:05:02 -05:00
Jack Nagel aa69b671b3 Use a priority queue to select compilers
The existing case-statement with nested if-statements is gross and hard
to extend. Replacing it with a priority queue simplifies the logic and
makes it very easy to add new compilers to the fails_with system, which
we will likely want to do in the future.
2013-03-16 13:05:02 -05:00
Jack Nagel f91df69127 Replace custom collection with Set
The original constraints that led to using a custom collection rather
than Array or Set here no longer exist, so let's avoid the pointless
abstraction here.
2013-03-16 13:05:02 -05:00
Jack Nagel 5ddd40b844 Switch compilers when no build is specified
Given the current state of OS X compilers, the original fails_with
behavior is becoming less useful, mostly resulting in build failures
each time the compiler is updated. So make the following changes:

When a build is specified, we retain the old behavior: switch compilers
if the available compiler is <= the build, don't switch if it is > the
build.

When no build is specified, unconditionally switch compilers, and don't
output the advice message. This allows us to mark formulae as
perpetually failing, avoiding the need to update formulae each time a
new compiler build is made available.

As a bonus, this makes the logic much easier to reason about.

Closes #18175.
2013-03-12 13:55:15 -05:00
Mike McQuaid c0793d5296 Only fails_with compiler version for developers.
Actually works properly now.

This reverts commit a0e56345ea.
2013-02-21 21:40:15 +00:00
Mike McQuaid a0e56345ea Revert "Only fails_with compiler version for developers."
This reverts commit c98d504952.
2013-02-20 16:39:04 +00:00
Mike McQuaid c98d504952 Only fails_with compiler version for developers.
Closes #17618.
Closes #17813.
2013-02-18 19:37:44 +00:00
Jack Nagel 4d341f2115 Don't shadow outer local variables 2013-02-18 12:13:36 -06:00
Jack Nagel c48c568a3e Remove Array subclassing
Inheriting from Array (and other core types) is problematic:

  - It exposes a very wide interface with many methods that are not
    really relevant to the subclass.
  - It can cause some weird side effects, as many Array operations are
    in C and have hardcoded return values; for example, combining two
    array subclasses returns a new Array instead of the subclass.

Avoid these problems using delegation and the Enumerable module where
applicable.
2013-01-07 14:32:14 -06:00
Mike McQuaid b435c79ce0 Don't warn uses on :fails_with compiler blocks.
Fixes #14121.
2012-08-11 17:19:43 +01:00
Jack Nagel b36f59dd3c New fails_with infrastructure
- Formulae can now declare failures on any compiler.
 - FailsWithLLVM and associated formula elements have been moved to
   compat.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00