From df85b4ae7de2f98acdcdb222b3cd86611b8af862 Mon Sep 17 00:00:00 2001 From: Reinaldo Junior Date: Thu, 3 Apr 2014 19:23:34 -0300 Subject: [PATCH] trying to enable c++11 features on gcc --- Library/Formula/sysdig.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Library/Formula/sysdig.rb b/Library/Formula/sysdig.rb index f1f272069f26..c304e3b38378 100644 --- a/Library/Formula/sysdig.rb +++ b/Library/Formula/sysdig.rb @@ -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