Skip to content

Commit

Permalink
enable thinLTO
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Apr 1, 2024
1 parent ff78812 commit 72f8149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ build_single_target() {
# LTO
# https://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
# https://convolv.es/guides/lto/
if [[ "${_CONFIG}" = *'thinlto'* ]]; then
if true || [[ "${_CONFIG}" = *'thinlto'* ]]; then
if [[ "${_CC}" = 'llvm' ]]; then
_CFLAGS_GLOBAL+=' -flto=thin'
_CXXFLAGS_GLOBAL+=' -flto=thin'
Expand Down

0 comments on commit 72f8149

Please sign in to comment.