From 47c73b4a8e924a45511da41ccd46bbb0613c5384 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Fri, 20 Dec 2013 13:40:40 -0800 Subject: tbb: enable building with non-Apple compilers Closes #25366. Signed-off-by: Jack Nagel --- Library/Formula/tbb.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/tbb.rb b/Library/Formula/tbb.rb index 26a2df3aa..91ad096c7 100644 --- a/Library/Formula/tbb.rb +++ b/Library/Formula/tbb.rb @@ -23,8 +23,9 @@ class Tbb < Formula ENV.cxx11 if build.cxx11? # Override build prefix so we can copy the dylibs out of the same place # no matter what system we're on, and use our compilers. + compiler = ENV.compiler.to_s.start_with?('gcc') ? 'gcc' : ENV.compiler args = ['tbb_build_prefix=BUILDPREFIX', - "compiler=#{ENV.compiler}"] + "compiler=#{compiler}"] args << (MacOS.prefer_64_bit? ? "arch=intel64" : "arch=ia32") args << "cpp0x=1" << "stdlib=libc++" if build.cxx11? system "make", *args -- cgit v1.2.3