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 e36957c commit b275027
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 @@ -1335,7 +1335,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 b275027

Please sign in to comment.