Skip to content

Commit

Permalink
tbb: fix build with GCC
Browse files Browse the repository at this point in the history
Fixes #4802.

Closes #5144.

Signed-off-by: Zhiming Wang <zmwangx@gmail.com>
  • Loading branch information
mistydemeo authored and zmwangx committed Sep 24, 2016
1 parent c7ecfb8 commit 3eb7c5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/tbb.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3eb7c5d

Please sign in to comment.