diff --git a/Formula/tbb.rb b/Formula/tbb.rb index 800cec7b78bce..aa4ab04126fd5 100644 --- a/Formula/tbb.rb +++ b/Formula/tbb.rb @@ -26,7 +26,8 @@ def install # Intel sets varying O levels on each compile command. ENV.no_optimization - args = %W[tbb_build_prefix=BUILDPREFIX] + compiler = ENV.compiler == :clang ? "clang" : "gcc" + args = %W[tbb_build_prefix=BUILDPREFIX compiler=#{compiler}] if build.cxx11? ENV.cxx11