Skip to content

Commit

Permalink
Merge pull request #19028 from JuliaLang/sf/LLVM_LTO
Browse files Browse the repository at this point in the history
Add `LLVM_LTO` make flag to build LLVM with Link-Time Optimization
  • Loading branch information
yuyichao authored Oct 21, 2016
2 parents 7c94acd + 722eb0d commit 0d8a738
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deps/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ else
LLVM_CC :=
endif # LLVM_SANITIZE

ifeq ($(LLVM_LTO),1)
LLVM_CPPFLAGS += -flto
LLVM_LDFLAGS += -flto
endif # LLVM_LTO

ifneq ($(LLVM_CXXFLAGS),)
LLVM_FLAGS += CXXFLAGS="$(LLVM_CXXFLAGS)"
LLVM_MFLAGS += CXXFLAGS="$(LLVM_CXXFLAGS)"
Expand Down

0 comments on commit 0d8a738

Please sign in to comment.