aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorArjun Singh2013-12-20 13:40:40 -0800
committerJack Nagel2013-12-21 19:18:23 -0600
commit47c73b4a8e924a45511da41ccd46bbb0613c5384 (patch)
tree58337f98a4471ac56dc7c9ac1fd8becc0f7ffffd /Library/Formula
parent3c0a51487c1887ea3cba8fcfd8260f5698cc6a02 (diff)
downloadhomebrew-47c73b4a8e924a45511da41ccd46bbb0613c5384.tar.bz2
tbb: enable building with non-Apple compilers
Closes #25366. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tbb.rb3
1 files changed, 2 insertions, 1 deletions
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