Skip to content

Commit

Permalink
llvm: build all targets
Browse files Browse the repository at this point in the history
Removes "--with-all-targets" option. Building all targets is the default LLVM build configuration, and makes this formula maximally useful for all users.

See discussion at #9212

Closes #9212.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
tmcdonell authored and MikeMcQuaid committed Jan 30, 2017
1 parent 8771d00 commit 3a8dc00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Formula/llvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ class Llvm < Formula
option "with-python", "Build bindings against custom Python"
option "with-shared-libs", "Build shared instead of static libraries"
option "without-libffi", "Do not use libffi to call external functions"
option "with-all-targets", "Build all targets. Default targets: AMDGPU, ARM, NVPTX, and X86"

depends_on "libffi" => :recommended # http://llvm.org/docs/GettingStarted.html#requirement
depends_on "graphviz" => :optional # for the 'dot' tool (lldb)
Expand Down Expand Up @@ -215,8 +214,8 @@ def install
-DLLVM_INSTALL_UTILS=ON
-DWITH_POLLY=ON
-DLINK_POLLY_INTO_TOOLS=ON
-DLLVM_TARGETS_TO_BUILD=all
]
args << "-DLLVM_TARGETS_TO_BUILD=#{build.with?("all-targets") ? "all" : "AMDGPU;ARM;NVPTX;X86"}"
args << "-DLIBOMP_ARCH=x86_64"
args << "-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON" if build.with? "compiler-rt"
args << "-DLLVM_CREATE_XCODE_TOOLCHAIN=ON" if build.with? "toolchain"
Expand Down

0 comments on commit 3a8dc00

Please sign in to comment.