Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
trying to enable c++11 features on gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
juniorz committed Apr 3, 2014
1 parent 26e1f83 commit df85b4a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Library/Formula/sysdig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ class Sysdig < Formula

head 'https://github.com/draios/sysdig.git', :branch => 'development'

# depends_on :macos => :mavericks
depends_on :macos => :mavericks # depends on clang
depends_on "cmake" => :build

fails_with :clang do
build (MacOS.version >= :mavericks ? 425 : 503)
cause 'clang build fails on Mountain Lion, but works on Mavericks.'
# could try
unless ENV.compiler == :clang
ENV.append_to_cflags "-stc=c++11 -stdlib=libc++"
end

#fails_with :gcc do
# cause 'Depends on C++11 features.'
#end

def install
ENV.deparallelize

Expand Down

0 comments on commit df85b4a

Please sign in to comment.