diff options
author | Paul Kirth <paulkirth@google.com> | 2024-03-18 22:03:20 +0000 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2024-03-18 22:03:20 +0000 |
commit | b985a329ddc5defbf1358376c5fe9f0090432b42 (patch) | |
tree | ea05ee212ef808131495b815552c89f0421680e1 | |
parent | e0b19e957e0ef9b4d88e09c44d6499d931328ecc (diff) | |
download | llvm-b985a329ddc5defbf1358376c5fe9f0090432b42.zip llvm-b985a329ddc5defbf1358376c5fe9f0090432b42.tar.gz llvm-b985a329ddc5defbf1358376c5fe9f0090432b42.tar.bz2 |
[𝘀𝗽𝗿] changes to main this commit is based on
Created using spr 1.3.4
[skip ci]
-rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 2 | ||||
-rw-r--r-- | llvm/cmake/modules/HandleLLVMOptions.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index d84d9d7..745935f 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -1637,7 +1637,7 @@ function(add_unittest test_suite test_name) # The runtime benefits of LTO don't outweight the compile time costs for tests. if(LLVM_ENABLE_LTO) if((UNIX OR MINGW) AND LINKER_IS_LLD) - if(LLVM_ENABLE_FATLTO) + if(LLVM_ENABLE_FATLTO AND NOT APPLE) # When using FatLTO, just use relocatable linking. set_property(TARGET ${test_name} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--no-fat-lto-objects") diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index 92fa983..185266c 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -1282,7 +1282,7 @@ elseif(LLVM_ENABLE_LTO) endif() endif() -if(LLVM_ENABLE_FATLTO AND (FUCHSIA OR UNIX)) +if(LLVM_ENABLE_FATLTO AND UNIX AND NOT APPLE) 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 CMAKE_MODULE_LINKER_FLAGS) |