Skip to content

Commit

Permalink
Add -ffat-lto-objects to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovepi committed Feb 27, 2024
1 parent 4d28019 commit 84c61d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,10 @@ elseif(LLVM_ENABLE_LTO)
endif()

if(LLVM_ENABLE_FATLTO AND (FUCHSIA OR UNIX))
append("-ffat-lto-objects" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
if(NOT LINKER_IS_LLD_LINK)
append("-ffat-lto-objects" CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
endif()
endif()

# Set an AIX default for LLVM_EXPORT_SYMBOLS_FOR_PLUGINS based on whether we are
Expand Down

0 comments on commit 84c61d9

Please sign in to comment.