diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tbb.rb | 3 |
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 |
