Skip to content

Commit

Permalink
enable thinLTO
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Jan 22, 2024
1 parent 53b74d1 commit 349c02c
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 @@ -1317,7 +1317,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 349c02c

Please sign in to comment.