ec11577107
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 Homebrew/homebrew#18175.
23 lines
584 B
Ruby
23 lines
584 B
Ruby
require 'formula'
|
|
|
|
class Simgrid < Formula
|
|
homepage 'http://simgrid.gforge.inria.fr'
|
|
url 'https://gforge.inria.fr/frs/download.php/29207/simgrid-3.6.2.tar.gz'
|
|
sha1 'da43c307a40fda00e31f8f1e04fe892d33cc63ed'
|
|
|
|
depends_on 'cmake' => :build
|
|
depends_on 'pcre'
|
|
depends_on 'graphviz'
|
|
|
|
fails_with :clang do
|
|
cause "Undefined symbols for architecture x86_64"
|
|
end
|
|
|
|
def install
|
|
system "cmake", ".",
|
|
"-Denable_debug=on",
|
|
"-Denable_compile_optimizations=off",
|
|
*std_cmake_args
|
|
system "make install"
|
|
end
|
|
end
|