Skip to content

Commit

Permalink
enable thinLTO
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Mar 18, 2024
1 parent 702b9ee commit bdb3c27
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 @@ -1329,7 +1329,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 bdb3c27

Please sign in to comment.